I make this simple query:
'''
databases.listDocuments(
databaseId: AuthenticationState.databaseId,
collectionId: BalanceCollectionId,
queries: [
Query.equal('user_id', localUser.$id),
],
);
'''
The balance collection is a simple collection with 600 entries. However it has relations to other collections, which had relations to others etc.
My assumption is that it is being slowed down because of nested relations. If all relations are called, a lot of data is requested.
This single call does take 10 seconds however, which seems excessive.
Does someone have a direction to solve this? Remove the relations and fetch them myself?