-2

Currently I am pulling them all into an array to parse, but I do not feel that will be as advisable when the user count starts exceeding a certain threshold.

  • A few more links in addition to the ones from Jen: https://stackoverflow.com/questions/35243492/firebase-android-make-username-unique, https://stackoverflow.com/questions/29970681/enforcing-unique-usernames-with-firebase-simplelogin, https://stackoverflow.com/questions/25294478/how-do-you-prevent-duplicate-user-properties-in-firebase, https://stackoverflow.com/questions/16339092/a-way-to-enforce-a-unique-property-in-firebase, ... – Frank van Puffelen Jul 22 '17 at 04:36

1 Answers1

1

Rather than retrieving the data and downloading it to the client, I recommend using Cloud Functions for Firebase. That way, the data remains private and can be processed quickly. See an answer I gave to this question before here.

Also check out these resources to get started with Cloud Functions for Firebase:

Cloud Functions for Firebase Usage Guide

Cloud Functions for Firebase samples

Getting Started with Cloud Functions for Firebase - Firecasts

Jen Person
  • 7,356
  • 22
  • 30