I am using Firestore to build my app. But I'm having the issue that I need to get all users to recommend users other users. Currently, I solve this issue by writing all data that I need for the loop in an overview document inside my users collection. But I'm realizing that a single document can only be 1 MB. That means I can only store ~1000 users.
Example of my database
{
'users': {
'userId': 'username'
}
}
How I can solve this?