Skip to content

Add warnings against storing large media/base64 in Firestore to prevent quota exhaustion#127

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
357B6A52F8FDB4C07DA33619273F02D8
Open

Add warnings against storing large media/base64 in Firestore to prevent quota exhaustion#127
copybara-service[bot] wants to merge 1 commit into
mainfrom
357B6A52F8FDB4C07DA33619273F02D8

Conversation

@copybara-service
Copy link
Copy Markdown
Contributor

Add warnings against storing large media/base64 in Firestore to prevent quota exhaustion

  • Adds critical warnings to Firebase prompt templates and skills about the risks of storing large binary media (like base64 data URLs) directly in Firestore.
  • Explains that large documents combined with frequent writes (e.g., during resize operations) can trigger "Write stream exhausted" errors and rapidly consume quota.
  • Recommends Firebase Storage as the best practice for media storage, with only references stored in Firestore.
  • Updates data model references for Firestore Enterprise Native Mode with the same guidance.

…nt quota exhaustion

* Adds critical warnings to Firebase prompt templates and skills about the risks of storing large binary media (like base64 data URLs) directly in Firestore.
* Explains that large documents combined with frequent writes (e.g., during resize operations) can trigger "Write stream exhausted" errors and rapidly consume quota.
* Recommends Firebase Storage as the best practice for media storage, with only references stored in Firestore.
* Updates data model references for Firestore Enterprise Native Mode with the same guidance.

PiperOrigin-RevId: 921678221
@google-cla
Copy link
Copy Markdown

google-cla Bot commented May 26, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants