Actually enable query timeouts 🤦

This commit is contained in:
Alex Gleason
2024-07-01 19:48:28 +01:00
parent 092a20088a
commit 4e150edb5b

View File

@@ -45,6 +45,7 @@ class EventsDB implements NStore {
constructor(private kysely: Kysely<DittoTables>) {
this.store = new NDatabase(kysely, {
fts: Conf.db.dialect,
timeoutStrategy: Conf.db.dialect === 'postgres' ? 'setStatementTimeout' : undefined,
indexTags: EventsDB.indexTags,
searchText: EventsDB.searchText,
});