I want to ask which is best for this case to implement in Firestore?
For instance, I have a list of transactions. In this list, I want to:
- Query and Sort.
- Full-text search using Algolia.
- Apply rules.
Should I use root collection which contains all transactions from all users, or create a sub-collection named transactions in each user?
A solution I look at should be efficient at cost and performance.
I have read:
But no mention for Algolia. I also have read Algolia docs, but there is no tutorial on how to implement Algolia search on sub-collection using the firebase extension.