Hello, how do I count the number of occurrences of the sequence 63298 on the right?
You can avoid having to scan your entire database by using the techniques in
https://firebase.google.com/docs/database/ios/structure-data
(never mind the ios).
See the end of the page, where they advocate redundancy for two way relationships.
1 Like