Firestore Increment - Counters that Scale

preview_player
Показать описание

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

firestore increment is 100% what I need currently for my project !!!! Thanks for sharing mate

stockiten
Автор

Maaaan, that count animation at 0:45 is dope!!

ericluna
Автор

Right on time Jeff. Firebase should be paying you

troythompson
Автор

I am so happy to have this, I can now pull out the functions code that I am using to do my inc/dec functions! Please more videos like this!!!!

Kevin
Автор

Wow, that's nice that it now reduces the need for a cloud function. Awesome stuff!

bioburden
Автор

Awesome. I have been waiting for this feature for ages. Kudos Jeff. Thanks firebase for updating your SDK.

DSodienye
Автор

Nice feature but, what would prevent an user to modify the aggregation value if you put that logic in the client? I can't think of a rule to prevent that (considering that the aggregation value is variable)

rodyguzman
Автор

Another cool video from Jeff! Nicely done!

patrickmullot
Автор

Yes to more quick video! This fit into my wait at the but stop. Also: increment is an awesome update! Thanks for keeping us informed.

Methodician
Автор

Is sharding (distributed counters) still needed with this method if dealing with frequent updates? Or is there some added backend technology to support additional increment/decrement updates?

alexbackflip
Автор

behind jef there is a team is obliged !! it's not possible to make tutorials as beautiful

minute_illimitee
Автор

I've come to the conclusion that the best way to do counting is to forego firestore and just use the realtime database for your counter data. Which ensures that you always have a 100% accurate number in the counter.

Even if you don't need a 100% accurate counter, it also means the code is much simpler

hojdog
Автор

You rock ! Thx Jeff. I've moved all my aggregated datas (counters and stuff) to RTDB because of that

harpymaslow
Автор

nice tip, thank you very much. and yes, this kind of 'quick tip video' is a great format and i would love to see more of these in the future :)

matthiasgehrmann
Автор

Now thats a great feature and a good video as always! One quick question tho
Should we use it in a cloud function or in the frontend, as I guess it may be possible for the client to manipulate the increment value on the frontend.

hooligansofts
Автор

Finally they made this possible. Now they should definitely make something like multiple array-contains possible in a query. Does a solution even exist for this kind of requirement ?

narcodico
Автор

Man excatly the same problems that i had in mind !! Each and every is solved thenks !!!

nepalesecreator
Автор

Normally if I’m doing a count, I just save each individual increment or decrement in the database and add it. Normally it’s pretty quick up to a few million rows. I use that method when information needs to be stored with the Increment as well. For example, IPaddress

chadkrause
Автор

This is going to be a big help! Thanks for giving us the nuts and bolts to get going with it :)

SoundFilmDesign
Автор

Are there any concurrent write issues with fieldvalue.increment? If you send increments in batches from multiple clients at the same time to the same document, will it fail to update correctly? I find my own counts are off occasionally (very rarely, but sometimes).

newbranday