Actually enable query timeouts 🤦

This commit is contained in:
Alex Gleason 2024-07-01 19:48:28 +01:00
parent 092a20088a
commit 4e150edb5b
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

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,
});