Faster Firestore via Data Aggregation

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

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

So if there are 1000 comments and a new comment is added, the cloud function is going to query all 1000 comments. That is 'disturbing' for me. I wish they had a built-in collection size property.

davidheisnam
Автор

Good video!
But I was thinking, does the firestore don't have a limit of 1 transaction/update per second? Even if I wrap all that code in a transaction, it will be limited by this 1sec update limit, right?

artursponchiado
Автор

Thank you for sharing this informative video! 🐋🖐🏾 I find this video very useful. I hope you are well.

pandarzzz
Автор

Thanks a lot Jeff! Could you prepare a video where you have to do Transaction in Cloud Functions for aggregation of a counter for example in order to prevent contention on multiple accesses on data ? It's a really common use case, and there's few docs about this on the web!

johanchouquet
Автор

1:48 What would be ideal for something that would get as many reads as writes?

TimeoutMegagameplays
Автор

how to add new subcollection from angular ?

murthy
Автор

Instead of reading all documents each time can you simply have a cloud function that increments a counter, and decrements based on a deletion.

basdfgwe
Автор

Use a limit(5) query in comments collection seems more simple, or no?

drantunes
Автор

event.params doesn't exist from DocumentSnapshot??

KosratDAhmad-tiqy
Автор

I have a similar feature but I don't nest comments under the parent collection. Instead, I have a separate collection at the root that is called comments, and have a property called parentId.
That is because a comment can be attached to a post or event or some other object.
Then when I call a post, I also make another call to comments with the post id, order desc, and limit to 5.
But if I needed to display the number of comments it would be different

tntg
Автор

Hi Jeff, I
may you advise me the level of typescript I must have to start developing SPA. Thanks

niyongaboeric
Автор

excellent content as always
my feed is full of firebase today, with all this dev summit and waht not. to bad most of it is for native mobile

RageBasterd
Автор

i know mysql but why nosql look so hard to me. hope someone could help me.

jajasaria
Автор

How does he write in batches (not letter by letter)? I assume it's done in editing but could there be an extension for vscode/some other magic in play?

or.o.s.t
Автор

Is this not as insufficient as reading all of the comments and then counting the number of objects? Or is it different when you're doing this on the server side?

krisnaldoHD
Автор

If I have 1 million documents and want to delete 500k Oldest is that one delete or 500k deletes?

whatthefunction
Автор

i have this error Cannot read property 'commentId' of undefined ? need help?

mozartzerna
Автор

Is this code still valid? I get a log error on the server that 'commentId' and 'postId' are trying to call on undefined ie ( 'event.params'). Any ideas?

zacturner
Автор

Hi. Can you please make this process in Flutter for Android section. I'll highly appreciate it. Thanks.

saffanalvy
Автор

You rock. Gotta take the pro stuff. Don't want to pay every month though. Is the 40% offer still up for the one-time purchase ? Thx man

harpymaslow