we22gz
we22gz

Reputation: 403

What is the longest string value that can be store in a firestore document field?

I have a long text of String that I want to store in a firestore document field. I know that each document has a limit of 1mb of size. Does that mean my string will only be as long as 1mb in size?

Upvotes: 2

Views: 1187

Answers (1)

Doug Stevenson
Doug Stevenson

Reputation: 317467

Yes, if you have a single string field in a document, it will be limited to the maximum size of a document.

Large amounts of content that don't need to indexed for querying are usually better stored in a product such as Cloud Storage rather than Cloud Firestore.

Upvotes: 3

Related Questions