firebase / flutterfire

🔥 A collection of Firebase plugins for Flutter apps.
https://firebase.google.com/docs/flutter/setup
BSD 3-Clause "New" or "Revised" License
8.5k stars 3.92k forks source link

🐛 [cloud_firestore] Support offline query indexes #12905

Open larssn opened 4 weeks ago

larssn commented 4 weeks ago

What feature would you like to see?

Is there a missing a feature that is supported on an underlying SDK? Or is there a feature that you think would be useful to have in FlutterFire?

Yes, offline query indexes have been out since September last year. Wondering when they'll get added. Here's the link: https://firebase.google.com/docs/firestore/manage-data/enable-offline#configure_offline_query_indexes

russellwheatley commented 4 weeks ago

Hey @larssn - thanks for creating the issue. I think it is something we ought to be supporting, but I'll get it confirmed and let you know 👍

larssn commented 3 weeks ago

Sounds good! It's a feature that might help us quite a lot, as we're seeing horrible cache performance on low-end payment devices.

tksoh commented 1 week ago

Just to share that I am eagerly awaiting this feature to be supported soon too, as it has impacted my apps. Right now I am forced to reduce the cache size to speed things up a little, which could otherwise take up to several seconds to query the offline data. Hopefully the local indexing would resolve this issue. Thanks

larssn commented 1 week ago

Just to share that I am eagerly awaiting this feature to be supported soon too, as it has impacted my apps. Right now I am forced to reduce the cache size to speed things up a little, which could otherwise take up to several seconds to query the offline data. Hopefully the local indexing would resolve this issue. Thanks

We see cases where cache querying takes 20+ seconds. And these are small queries, meant to find 25 documents.