mirror of
https://github.com/aljazceru/ditto.git
synced 2026-02-10 07:54:19 +01:00
Actually enable query timeouts 🤦
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user