I want to have two indexes in my firestore.
Both should have array keywords, and be ordered by time posted (timestamp)
One needs to be ordered by timestamp descending and other one needs to be ordered by timestamp ascending
if I create one of them I cannot create other one.
What is the way to do this, or is there a better way?
I dont want to get whole collection and then order them, I want to load them in chunks.
firestore.collection(collection).orderBy("timestamp", direction).startAfter(lastSnapshot).limit(10).get().addOnCompleteListener(......)