I want to get a list (potentially 100k+ entries) as read-only values.
I can use:
firebaseRef.once('value', function(dataSnapshot) {
// handle read data.
});
Or I could get the data by issuing a GET request to a Firebase endpoint:
https://docs-examples.firebaseio.com/rest/saving-data/fireblog/posts.json
In this read-only scenario, the REST API seems to be consistently faster than using the library. Particularly on larger data sets.
Why is this? If I only want to read data, is there any reason not to use the GET request method?