feat: insertBatchSize

This commit is contained in:
2024-04-12 18:28:50 +01:00
parent e62bb58362
commit e5c8634c59
6 changed files with 39 additions and 11 deletions

View File

@ -13,7 +13,10 @@ export const Relay = new WorkerRelayInterface(
);
export async function initRelayWorker() {
try {
await Relay.init("relay.db");
await Relay.init({
databasePath: "relay.db",
insertBatchSize: 100
});
} catch (e) {
console.error(e);
}