From 1e1fbf9e95178e4fed27cc1ff0394067e72a1a7a Mon Sep 17 00:00:00 2001 From: Piotr Zalewski Date: Wed, 18 Dec 2024 09:38:01 +0100 Subject: [PATCH] chore: update indexes --- firestore.indexes.json | 43 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/firestore.indexes.json b/firestore.indexes.json index 13af2901..17cf5109 100644 --- a/firestore.indexes.json +++ b/firestore.indexes.json @@ -1,5 +1,47 @@ { "indexes": [ + { + "collectionGroup": "conversations", + "queryScope": "COLLECTION", + "fields": [ + { + "fieldPath": "targetUserId", + "order": "ASCENDING" + }, + { + "fieldPath": "updatedAt", + "order": "DESCENDING" + } + ] + }, + { + "collectionGroup": "conversations", + "queryScope": "COLLECTION", + "fields": [ + { + "fieldPath": "userId", + "order": "ASCENDING" + }, + { + "fieldPath": "updatedAt", + "order": "DESCENDING" + } + ] + }, + { + "collectionGroup": "trends", + "queryScope": "COLLECTION", + "fields": [ + { + "fieldPath": "createdAt", + "order": "ASCENDING" + }, + { + "fieldPath": "counter", + "order": "DESCENDING" + } + ] + }, { "collectionGroup": "tweets", "queryScope": "COLLECTION", @@ -89,6 +131,7 @@ { "collectionGroup": "bookmarks", "fieldPath": "id", + "ttl": false, "indexes": [ { "order": "ASCENDING",