Cut down Firestore Reads by 100x! | How to Reduce Firebase Cost

preview_player
Показать описание
We explore a trick to cut down Cloud Firestore read by 100x!

//====================== SOCIAL MEDIA =====================//
//====================== SOCIAL MEDIA =====================//

//======================= TIMESTAMP =======================//
00:00 : Introduction
00:41 : Example of when to use this trick
01:16 : Explanation of trick
01:53 : Implementation | Read
02:20 : Implementation | Create
02:45 : Implementation | Update
02:54 : Implementation | Delete
03:07 : Implementation | Duplicate
03:11 : Implementation | Sort
03:41 : Demo
04:38 : Upcoming Plans
05:12 : Outro
//======================= TIMESTAMP =======================//

//========================= LINKS =========================//
//========================= LINKS =========================//
Рекомендации по теме
Комментарии
Автор

I've tried this trick and it works very well in decreasing the reads. But I'm worried about the scaling of the users. If 100 users access one single document at same time. Some request will surely fail because of the 1 write/second policy on firebase firestore. Do you have other advice or suggestions for this down side on the trick? Thanks

elvenme
Автор

it is ok, but it is not a good design according to firebase's official channel. we can't query too much inside the document, inside map field, and limit of 20k field. I don't suggest going with this design.

rubnawazqureshi
Автор

do you know what in my mind ?
" Is this against the rules? "

bayulestari
Автор

It's not work because I made one app fully functionality with fireStore with good data modeling.. Even then my read count increase 25 times and sometime 38 times. When I read only one document.. For example I have one document inside that document i kept the data as map object even read count increase 25 times.. How does read count work we can't say.. I think..

codingsick
Автор

how i can resolve bandwidth (storage) its 1gb for one day ?
and i have a lot of images.

amershalata
Автор

Hello genius, can you help me, I have a song app, which contains 100 - 120 songs, I have only 10 users, bandwidth reached the limit of 1 GB, please help me how to reduce it ... Hopefully waiting for your reply

arunmohan