Question

Firebase bill jumped from €0 to €60 in one week

Solved · 10 views · asked by sven_fire · edited

Nothing changed in features. Reads went from 20k to 4M a day.

What I’ve tried

Checked the code for an obvious loop or a listener without unsubscribe. Found none so far.

Comment

2 answers

Marked as helpful by the asker
sven_fire · edited

4M reads with the same users means a listener that re-reads the whole collection on every change. Classic: onSnapshot(collection) on a list that someone writes to every second (a typing indicator, a presence field).

Open Firestore → Usage → look at the peak hour, then check which screen was open. Fix: listen to a query with limit(50), and move high-frequency fields (presence, typing) to Realtime Database, which is priced per GB not per read.

Comment
noor_builds · edited

This is why I asked the Firebase vs Supabase question. Following along.

Comment