How Do I Paginate My Data? | Get to know Cloud Firestore #7

How Do I Paginate My Data? | Get to know Cloud Firestore #7

Firebase

5 лет назад

140,132 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Erick FT
Erick FT - 28.11.2023 03:53

Thanks. Would be great to have a new video focusing more in pagination for realtime cases, like chat apps, for instance. It's kind of complicated to find help online for a consistent way to implement pagination with real-time updates with Firestore

Ответить
sahil karni
sahil karni - 20.06.2023 07:04

what if i use streams and streambuilder and list.view builder, do i still need to paginate ?

Ответить
ינון רחמים
ינון רחמים - 01.05.2023 23:40

Great explanation! Thanks

Ответить
Leonardo Silveira
Leonardo Silveira - 02.02.2023 04:49

hmm, use start instead offset. got it

Ответить
tntg5
tntg5 - 05.08.2022 14:33

Please add getLength() method to collections. Otherwise, pagination feels like walking down stairs blindfolded

Ответить
27sosite
27sosite - 02.07.2022 11:49

nice

Ответить
Learnings
Learnings - 30.06.2022 11:52

Thanks...very informative

Ответить
Escola de Jesus na Freguesia do Ó SP Neemias Jesus
Escola de Jesus na Freguesia do Ó SP Neemias Jesus - 06.06.2022 22:32

Very nice.
But how about jump pagination, imagine i'm on page 3, and want to go to page 7, how do i implement that? there is a function to "jump x docs"?

Ответить
raccoon.roosters
raccoon.roosters - 31.05.2022 13:20

Where can I get an edible bear like in the video?

Ответить
LuisWebDev
LuisWebDev - 23.05.2022 17:31

these videos are really really good and instructional, thanks for them

Ответить
The Dev Guild
The Dev Guild - 09.04.2022 11:12

I believe the key essence here is, the option you choose is dependent on how real-timeliness you want your app to be!!

Ответить
PizzaGuy
PizzaGuy - 16.01.2022 23:14

I still dont know how to do it , I only learned how not to do it

Ответить
Adie Mar
Adie Mar - 08.12.2021 08:37

i just hope that firebase would find a solution for better pagination and dynamic queries, but as of now it's not one of the best for obvious reason.

Ответить
DeepSeaDiver
DeepSeaDiver - 05.12.2021 21:22

A downloadable Xcode sample project would have been nice.. You spoke on how to use it BUT didn't show the specifics concerning snapshot/listener code implementation... Disappointed.

Ответить
osman musse
osman musse - 16.10.2021 23:36

Best teacher end of story

Ответить
Sebastián Mite
Sebastián Mite - 16.09.2021 23:53

Amazing

Ответить
Giulio Federico
Giulio Federico - 11.08.2021 23:33

Brilliant as ever

Ответить
Dmytro Turskyi
Dmytro Turskyi - 05.08.2021 09:25

whereEqualTo cannot be used with orderBy!! this video has mistake at [7.57]

Ответить
d4lep0ro
d4lep0ro - 29.04.2021 23:06

Remember that incremental (limit) pagination breaks if you have persistence on, queries might trigger from old cached values. Say you query for 10 elements, you might get 2 element from older cache.

Ответить
YeiL
YeiL - 15.04.2021 02:59

How to count documents without being charged

Ответить
Julian GZR
Julian GZR - 27.03.2021 04:59

you missed one thing, to paginate without infinite scroll we need to know the amount of records the search has, so we can know the amount of pages, how we can do that?

Ответить
Sher C
Sher C - 10.03.2021 22:55

Brain: you are supposed to keep watching this tutorial

Me: I WANT THIS GIANT GUMMY BEAR

Ответить
Nick Junes
Nick Junes - 07.03.2021 05:15

Where doesn't seem to work with pagination. Is there a way to combine a where clause and pagination?

Ответить
ProfessionalTycoons
ProfessionalTycoons - 25.12.2020 11:26

super cool and useful!

Ответить
Jonas Do
Jonas Do - 04.12.2020 22:57

why does everything feel like a one big hack with Cloud Firestore?

Ответить
Eduardo Tavares
Eduardo Tavares - 24.10.2020 05:30

Hi! I have approximately 4.000 records on my firestore and I am paginating it by 20.But what if I am at the beginning and I want to search for an item that hasn't been loaded yet?How would I handle this situation?Thank you!

Ответить
Za7972
Za7972 - 08.10.2020 17:27

This will be a big issue for most of the companies using Firestore, I was NOT expecting this.

Ответить
Narongchai Jaroonpipatkul
Narongchai Jaroonpipatkul - 06.10.2020 22:24

I have a question.

If my documents update index real time, What happen if I separate my collection to 2 collections ?

First collection keep data and second keep only index but same key.
Then I query first 500 keys from second collection and keep in array call "keys_array".
Then I query data from first collection that same key in array 1 by 1 every 20 time when user scroll to the bottom of page.
So I can manage pagination by myself and documents will not swap order in user's screen.

And if this work, it can make numerical paginations.

Because only index that's a number is more low cost than full data of document.

Ответить
Luca Ban
Luca Ban - 01.09.2020 02:34

What is `whereField()` ? :D why not just `where()` ?

Ответить
Duane Hodges
Duane Hodges - 17.08.2020 03:44

When we're paginating and we're using .startAfter(document[field]) are we supplying the document Id here or the entire document?

Ответить
Raju kumar
Raju kumar - 12.08.2020 16:03

How can we achieve the pagination in PHP language.

Ответить
luke cross
luke cross - 23.07.2020 20:11

Well, if the reads from database is scalling to the loaded documents+new documents instead of just new documents (already loaded documents not need load again) then is lower than the original recyclerView and RecyclerView FirebaseUI... this is very bad idea (you will lost realtime updates and your reads from database increases exponentially) .-.

Ответить
benton202
benton202 - 23.06.2020 23:09

this is the most confusing function of firestore .....

Ответить
SNJ
SNJ - 22.06.2020 11:01

Great video!!! thanks

Ответить
luke cross
luke cross - 21.05.2020 19:56

FirebaseUI Pagination not can capturate the Snapshot Document

Ответить
Klazyo
Klazyo - 11.05.2020 18:43

I don't have Money

Ответить
Brandon Moon
Brandon Moon - 08.05.2020 02:35

broo I spent a lot of time "paginating" as documentation says then I realised that I can use 'offset'... dammit

Ответить
Alejandro Risco
Alejandro Risco - 06.05.2020 07:02

Imagine that gummy bear made out of rum

Ответить
Constantin Chirila
Constantin Chirila - 13.04.2020 17:36

This tutorial is misleading. There is no pagination. As after wasting half a day, there is still a very hard thing to do to just get the items with index 20 to 40 as they are in a document.

Ответить
Jean Carlo Flores Carrasco
Jean Carlo Flores Carrasco - 22.03.2020 15:07

Hi, I have a problem with limit, It always bring 20(for example), when only it is supposed to bring 10 elements. Yes ther another 10 are duplicateds

Ответить
Jonathan Gamble
Jonathan Gamble - 15.03.2020 05:16

Bring 'offset' to the front end!!!

Ответить
rais mohamad
rais mohamad - 07.03.2020 22:09

How do we know how many pages have using this method?

Ответить
Tinman
Tinman - 19.02.2020 03:34

Ah, my loyal friend MySQL and LIMIT 0,20

Ответить
Julien Reszka
Julien Reszka - 16.02.2020 19:46

did the api change ? nothing of this works currently

Ответить
zakaria chahboun
zakaria chahboun - 28.01.2020 20:40

Thanks man!

Ответить
Youn Media Holdings
Youn Media Holdings - 30.12.2019 02:23

This pagination this is really cool, not tedious and very efficient. Nice work Google Firebase Team!

Ответить
Matthew Ferguson
Matthew Ferguson - 17.12.2019 13:02

Wow sorry guys but this is terrible, we need proper paging...

Ответить