Skip to content

Slow Firestore query on large collections #18570

@uehsnap

Description

@uehsnap

A simple query like

firestore.collection('small_collection').limit(1).getDocuments()

on a relatively small collection is almost "instantaneous". However, the same query on a collection with more than 100k documents takes more than 10-20s.
I think this is a cloud_firestore plugin issue because this query running on Python on the same large collection is also "instantaneous".

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: performanceRelates to speed or footprint issues (see "perf:" labels)p: cloud_firestoreFirebase Firestore pluginp: firebaseFirebase pluginspackageflutter/packages repository. See also p: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions