Closed ggordn3r closed 4 years ago
Okay, we have some limitations here:
Of course, we can do both but that is a way different scope. Firebase's database is meant for documents, these kinds of operations are more relational (like SQL). There is no easy way to do both.
BUT what we can do:
Available for testing in stage - please test and let me know how to proceed.
This looks good. I'll have to document how it works. What determines which user/poll shows up on page 1? Is it creation date? As I mentioned above, ideally the users with recent logins and polls with recent create dates are the first ones to appear, but I understand that's more of a SQL request.
It's pretty random who shows up first. As this is not sortable by default we just know that we are getting them in order (presumably, but not guaranteed, in which they are created).
Ok, I'll document this.
For admins, fetching on the "manage users" and "manage polls" pages is now taking a very long time. This makes sense if they're loading all records--we now have over 4,000 registered users and probably something like 10,000 polls. It's also becoming increasingly difficult to find the exact user or poll you want to moderate and this will only get worse over time.
We need some way to help admins find the record they want more quickly. I propose: