Firestore write
Last updated
Last updated
https://firebase.google.com/docs/firestore/manage-data/add-data#set_a_document
There current is roughly 40,000 limit to indexing for Firestore.
https://firebase.google.com/docs/firestore/query-data/index-overview#indexing_best_practices
Large string fields If you have a string field that often holds long string values that you don’t use for querying, you can cut storage costs by exempting the field from indexing.
To delete an index:
Go to the Database section of the Firebase console.
Click the Indexes tab.
Hover over the index you want to delete and select Delete from the context menu.
Confirm that you want to delete it by clicking Delete from the alert.
It doesn't mention anywhere how to do this programmatically... :(
You need access to FieldValue, which is available from firebase.firestore.FieldValue.serverTimestamp()
This can also be used client side