Daniel Ferreira Jorge
Daniel Ferreira Jorge

Reputation: 387

If I add an index exemption, will it delete already existing single-field indexes?

I have a database with hundreds of millions o documents. There is a field in each document that is very big (deeply nested), and I did not add an exemption to it from the beginning.

My question is: If I add the exemption now, I know that it will prevent to index this field for further documents added to the database, but will it delete the already existing index too and free space?

Thank you

Upvotes: 2

Views: 161

Answers (1)

DIGI Byte
DIGI Byte

Reputation: 4161

Further documents will not be added to the index table with an exception and existing indexes will be disabled.

An indexing exemption overrides the database-wide automatic index settings.

Source: https://firebase.google.com/docs/firestore/query-data/index-overview

Upvotes: 1

Related Questions