I'm building a fairly simple Next.js app that allows users to browse potentially millions of user profiles by 4-5 key facets (last login date, team, tags, a few other basic fields).
I soon discovered that Firestore won't allow me to run the queries I need to, if I wish to support multiple filters. I could get, for example, all the profiles with a matching team, but to filter all the other facets I'd have to do it on the front end and end up invoking far more document reads than I'd like to.
Algolia to the rescue! Works great, but boy is that cost going to rack up. I can't feasibly launch this app with Algolia or I'll have to remortgage my house. I also absolutely do not need text search, just basic faceting, so I really feel like Algolia is overkill here regardless of the cost implications.
I really do not want to start querying Firestore for an insane number of documents and then run the filtering on the client, unless this really is the BEST option for my needs. But I need advice.
Thanks guys!