Azure / Azure/azure-documentdb-java

Continuation and requestCharge missing with options.setEnableCrossPartitionQuery(true);

Aperta
#102 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Java
Stelle
51
Fork
52
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

I'm trying to use continuations against a partitioned cosomosdb.

I've noticed that queries that hit multiple partitions will fail with
> Cross partition query is required but disabled

In these cases its possible to use options.setEnableCrossPartitionQuery(true) and the query returns.

However for cross partition queries I see that feedResponse.getResponseContinuation() returns null and feedResponse.getRequestCharge() is 0.0.

It's then not possible to page to as there is no continuation token. Also I'd expect the requestCharge to be the sum of all the paritition charges.

Is this a bug or a limitation?

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.