[cloud_firestore]: Firestore whereNotIn Query with Chunking Produces Incorrect Results #17013
Open
1 task done
Labels
blocked: customer-response
Waiting for customer response, e.g. more information was requested.
plugin: cloud_firestore
type: bug
Something isn't working
Is there an existing issue for this?
Which plugins are affected?
No response
Which platforms are affected?
No response
Description
Description
I encountered an issue while using Firestore's whereNotIn query with chunking to handle the 10-item limit for exclusions. The problem arises when chunking doesn't properly exclude all the necessary productIds across multiple queries. This leads to incorrect results being fetched.
Reproducing the issue
Steps to Reproduce
Expected Behavior
All product IDs specified in productIds should be excluded from the results across all chunks.
Actual Behavior
The exclusions in the current chunk do not respect the exclusions from previous chunks, leading to incorrect results.
Relevant Code Snippet
Firebase Core version
^3.4.0
Flutter Version
3.24
Relevant Log Output
Flutter dependencies
name: my ex app
description: "A new Flutter project."
publish_to: 'none'
version: 1.0.0+1
environment:
sdk: '>=3.3.4 <4.0.0'
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.6
firebase_core: ^3.4.0
cloud_firestore: ^5.0.1
firebase_auth: ^5.1.0
google_sign_in: ^6.2.1
shared_preferences: ^2.2.3
flutter_screenutil: ^5.9.3
fluttertoast: ^8.2.6
provider: ^6.0.5
google_fonts: ^5.1.0
url_launcher: ^6.3.0
intl: ^0.19.0
pull_to_refresh: ^2.0.0
pin_code_fields: ^8.0.1
connectivity_plus: ^2.3.0
http: ^1.0.0
geolocator: ^13.0.2
geocoding: ^3.0.0
carousel_slider: ^5.0.0
hive: ^2.2.3
hive_flutter: ^1.1.0
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^3.0.0
build_runner: ^2.4.10
hive_generator: ^2.0.1
flutter:
uses-material-design: true
To add assets to your application, add an assets section, like this:
assets:
- assets/
- assets/home-icon.png
- assets/Tracking.png
- assets/offer-poster.jpg
- assets/order-history.png
- assets/user-icon.png
- assets/grocerys-texture.png
- assets\products\yippe.png
- assets/products/oreo.png
- assets/products/parle-g.png
- assets\products\biscuit (1).png
- assets\illistrations\no vender.png
- assets\illistrations\No internet.png
- assets\icons\google-maps.png
Additional context and comments
the product ids is big list
The text was updated successfully, but these errors were encountered: