Explains limit index
This commit is contained in:
+2
@@ -65,6 +65,8 @@ class EventIndexesModule(
|
|||||||
|
|
||||||
// queries by ID (load events)
|
// queries by ID (load events)
|
||||||
db.execSQL("CREATE UNIQUE INDEX event_headers_id ON event_headers (id)")
|
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)")
|
db.execSQL("CREATE INDEX query_by_created_at_id ON event_headers (created_at DESC, id)")
|
||||||
|
|
||||||
// need to check if this is actually needed.
|
// need to check if this is actually needed.
|
||||||
|
|||||||
Reference in New Issue
Block a user