I'm new to storing and retrieving large amounts of data from a database. I have an iOS app that stores data with Firebase and everything is working fine, but I'm worried that once there's more and more data, performance will suffer.
For example, when creating a profile, the user must choose a username that has not already been taken. In order to do this, I retrieve all of the existing usernames and check if the new username is already there. My question then is how can I test what will happen if there are thousands or even millions of existing usernames?
Thanks in advance.