From a331aa54b7755f1cf0889f6a150081b3f272dd5b Mon Sep 17 00:00:00 2001 From: Roberto Fontanarosa Date: Fri, 4 Sep 2026 14:14:09 +0200 Subject: [PATCH] Add Firestore indexes for incremental LOI sync on Android --- firestore/firestore.indexes.json | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/firestore/firestore.indexes.json b/firestore/firestore.indexes.json index b68957c2f..66ce45e80 100644 --- a/firestore/firestore.indexes.json +++ b/firestore/firestore.indexes.json @@ -1,5 +1,37 @@ { "indexes": [ + { + "collectionGroup": "lois", + "queryScope": "COLLECTION", + "fields": [ + { + "fieldPath": "`5`", // owner_id + "order": "ASCENDING" + }, + { + "fieldPath": "`9`", // source + "order": "ASCENDING" + }, + { + "fieldPath": "`7`.`3`.`1`", // last_modified.server_timestamp.seconds + "order": "ASCENDING" + } + ] + }, + { + "collectionGroup": "lois", + "queryScope": "COLLECTION", + "fields": [ + { + "fieldPath": "`9`", // source + "order": "ASCENDING" + }, + { + "fieldPath": "`7`.`3`.`1`", // last_modified.server_timestamp.seconds + "order": "ASCENDING" + } + ] + }, { "collectionGroup": "submissions", "queryScope": "COLLECTION",