From d7ed9726c5687cf21f1ab8480ca1b29b28eb4274 Mon Sep 17 00:00:00 2001 From: "Petter H. Juliussen" Date: Thu, 7 Dec 2023 13:29:34 +0100 Subject: [PATCH] Update firestore indexes --- firestore.indexes.json | 92 +++++++++++++++++++++++++++--------------- 1 file changed, 60 insertions(+), 32 deletions(-) diff --git a/firestore.indexes.json b/firestore.indexes.json index 2d74c976..10f30eb5 100644 --- a/firestore.indexes.json +++ b/firestore.indexes.json @@ -174,6 +174,52 @@ } ] }, + { + "collectionGroup": "kpis", + "queryScope": "COLLECTION", + "fields": [ + { + "fieldPath": "archived", + "order": "ASCENDING" + }, + { + "fieldPath": "created", + "order": "ASCENDING" + } + ] + }, + { + "collectionGroup": "kpis", + "queryScope": "COLLECTION", + "fields": [ + { + "fieldPath": "archived", + "order": "ASCENDING" + }, + { + "fieldPath": "created", + "order": "DESCENDING" + } + ] + }, + { + "collectionGroup": "objectiveContributors", + "queryScope": "COLLECTION", + "fields": [ + { + "fieldPath": "archived", + "order": "ASCENDING" + }, + { + "fieldPath": "item", + "order": "ASCENDING" + }, + { + "fieldPath": "objective", + "order": "ASCENDING" + } + ] + }, { "collectionGroup": "objectives", "queryScope": "COLLECTION", @@ -302,24 +348,6 @@ } ] }, - { - "collectionGroup": "objectiveContributors", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "archived", - "order": "ASCENDING" - }, - { - "fieldPath": "item", - "order": "ASCENDING" - }, - { - "fieldPath": "objective", - "order": "ASCENDING" - } - ] - }, { "collectionGroup": "secrets", "queryScope": "COLLECTION", @@ -406,8 +434,8 @@ ] }, { - "collectionGroup": "objectives", - "fieldPath": "createdBy", + "collectionGroup": "objectiveContributors", + "fieldPath": "auto", "ttl": false, "indexes": [ { @@ -423,13 +451,13 @@ "queryScope": "COLLECTION" }, { - "order": "ASCENDING", + "arrayConfig": "CONTAINS", "queryScope": "COLLECTION_GROUP" } ] }, { - "collectionGroup": "periods", + "collectionGroup": "objectives", "fieldPath": "createdBy", "ttl": false, "indexes": [ @@ -452,8 +480,8 @@ ] }, { - "collectionGroup": "products", - "fieldPath": "slug", + "collectionGroup": "periods", + "fieldPath": "createdBy", "ttl": false, "indexes": [ { @@ -476,7 +504,7 @@ }, { "collectionGroup": "products", - "fieldPath": "team", + "fieldPath": "slug", "ttl": false, "indexes": [ { @@ -492,14 +520,14 @@ "queryScope": "COLLECTION" }, { - "arrayConfig": "CONTAINS", + "order": "ASCENDING", "queryScope": "COLLECTION_GROUP" } ] }, { - "collectionGroup": "progress", - "fieldPath": "createdBy", + "collectionGroup": "products", + "fieldPath": "team", "ttl": false, "indexes": [ { @@ -515,14 +543,14 @@ "queryScope": "COLLECTION" }, { - "order": "ASCENDING", + "arrayConfig": "CONTAINS", "queryScope": "COLLECTION_GROUP" } ] }, { - "collectionGroup": "objectiveContributors", - "fieldPath": "auto", + "collectionGroup": "progress", + "fieldPath": "createdBy", "ttl": false, "indexes": [ { @@ -538,7 +566,7 @@ "queryScope": "COLLECTION" }, { - "arrayConfig": "CONTAINS", + "order": "ASCENDING", "queryScope": "COLLECTION_GROUP" } ]