Explains limit index

This commit is contained in:
Vitor Pamplona
2026-01-01 12:48:48 -05:00
parent f48eba6a8e
commit b7c7eabf2a
@@ -65,6 +65,8 @@ class EventIndexesModule(
// queries by ID (load events)
db.execSQL("CREATE UNIQUE INDEX event_headers_id ON event_headers (id)")
// queries by limit (latest records), since, until (sync all) alone
db.execSQL("CREATE INDEX query_by_created_at_id ON event_headers (created_at DESC, id)")
// need to check if this is actually needed.