I have an app that contains millions of documents per Collection. My app is created using Android Java with Firestore Database. The problem is that Firestore's batched write can only update up to 500 documents. What if I need to update more than 500 documents? I cannot create multiple batched write just to solve my problem because I am using Android with Java and there's no such thing as Promise or AsyncTask in Java. Therefore, creating multiple batched write will not return a Promise. So I cannot assure the consistency of my data with Batched Write.
I read about Firebase Realtime Database's multipath updates and it can really solve my problem because it has no documented limit. But the problem with Realtime Database is that it doesn't support queries on multiple where clauses like in the Firestore database.
In my case where I want to have support for multiple where clauses and update up to millions of data, which database should I use?
Please help me because I am confused right now and I am planning to migrate to SQL if my problem with Firebase can't be solved.