File tree 1 file changed +2
-2
lines changed
packages/firestore/src/local 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ export class QueryEngine {
154
154
return null ;
155
155
}
156
156
157
- if ( indexType === IndexType . PARTIAL ) {
157
+ if ( query . limit !== null && indexType === IndexType . PARTIAL ) {
158
158
// We cannot apply a limit for targets that are served using a partial
159
159
// index. If a partial index will be used to serve the target, the
160
160
// query may return a superset of documents that match the target
@@ -301,7 +301,7 @@ export class QueryEngine {
301
301
* Determines if a limit query needs to be refilled from cache, making it
302
302
* ineligible for index-free execution.
303
303
*
304
- * @param query The query.
304
+ * @param query - The query.
305
305
* @param sortedPreviousResults - The documents that matched the query when it
306
306
* was last synchronized, sorted by the query's comparator.
307
307
* @param remoteKeys - The document keys that matched the query at the last
You can’t perform that action at this time.
0 commit comments