Let's say there's 2 million rows in a firebase table and I want to initialise a search index. If I'm using NodeJS & Mongo I could stream the query so we're not trying to load so many rows into memory before writing them out to the search index in batches.
How would I efficiently process all the records with Firebase? Are paging queries the best option? Or is there a way to stream the records with a single query?