diff options
| author | Marvin W <git@larma.de> | 2023-03-20 15:40:44 -0600 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi92@disroot.org> | 2026-02-10 23:40:46 +0100 |
| commit | 3769d06940e6cf68f0f9ecafb4c275cf33944ea2 (patch) | |
| tree | f63baea6c01bde6a771b1dde23108562c4f4a645 /libdino | |
| parent | a859694a64ec3e5481e8f5051187587ecd4c3ebf (diff) | |
Improve database performance while reconnecting and syncing
Also move some tasks to low priority idle queue so they won't block UI updates
Diffstat (limited to 'libdino')
| -rw-r--r-- | libdino/src/service/database.vala | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libdino/src/service/database.vala b/libdino/src/service/database.vala index 25a6b477..7cb015e2 100644 --- a/libdino/src/service/database.vala +++ b/libdino/src/service/database.vala @@ -7,7 +7,7 @@ using Dino.Entities; namespace Dino { public class Database : Qlite.Database { - private const int VERSION = 23; + private const int VERSION = 26; public class AccountTable : Table { public Column<int> id = new Column.Integer("id") { primary_key = true, auto_increment = true }; @@ -93,6 +93,11 @@ public class Database : Qlite.Database { // deduplication index("message_account_counterpart_stanzaid_idx", {account_id, counterpart_id, stanza_id}); + index("message_account_counterpart_serverid_idx", {account_id, counterpart_id, server_id}); + + // message by marked + index("message_account_marked_idx", {account_id, marked}); + fts({body}); } } |
