2
votes

I have a small web application that uses Firestore for the data. I am currently storing around 8 million objects.

The data size in the Firestore database is 10 times bigger than it is in "raw" format (json files).

Reading this wiki I came to the conclusion that there is a high chance that the automatic indexes are guilty of the humongous size of the database.

I have read the indexing documentation and it says how to create and remove custom indexes from the console, but I haven't find a way of removing automatic indexes.

Since I am only doing direct access to the objects, I don't need fields indexing at all.

1
I don't believe this is currently possible. Sounds like a feature request. firebase.google.com/support/contact/bugs-features - Doug Stevenson
This was added as of Aug 8th 2018 firebase.googleblog.com/2018/08/… - Rodrigo Mata

1 Answers

2
votes

During the Beta there is no way to remove automatic generated indexes in Firestore.

So far you are only able to manage composite indexes by yourself.

Source: A Google Firestore employee mentioned this as a part of an answer on another question on Stackoverflow. Though, I can't find the link to the post anymore.