Skip to content

Commit 993be7a

Browse files
committed
Don't use an index for serving queries with composite filters yet.
1 parent f33b042 commit 993be7a

File tree

1 file changed

+2
-1
lines changed
  • firebase-firestore/src/main/java/com/google/firebase/firestore/local

1 file changed

+2
-1
lines changed

firebase-firestore/src/main/java/com/google/firebase/firestore/local/QueryEngine.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ public ImmutableSortedMap<DocumentKey, Document> getDocumentsMatchingQuery(
131131
Query query,
132132
ImmutableSortedSet<DocumentKey> remoteKeys,
133133
SnapshotVersion lastLimboFreeSnapshotVersion) {
134-
if (query.matchesAllDocuments()) {
134+
// TODO(orquery): Update this condition when we are able to serve or queries from the index.
135+
if (query.matchesAllDocuments() || query.containsCompositeFilters()) {
135136
// Don't use index queries that can be executed by scanning the collection.
136137
return null;
137138
}

0 commit comments

Comments
 (0)