flutterfire icon indicating copy to clipboard operation
flutterfire copied to clipboard

🐛 [cloud_firestore] Support offline query indexes

Open larssn opened this issue 1 year ago • 4 comments

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

larssn avatar Jun 05 '24 12:06 larssn

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 👍

russellwheatley avatar Jun 05 '24 12:06 russellwheatley

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.

larssn avatar Jun 07 '24 14:06 larssn

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

tksoh avatar Jun 23 '24 01:06 tksoh

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.

larssn avatar Jun 26 '24 08:06 larssn