); } .color-scheme--dark .devsite-nav-icon[data-icon="alpha"]::before { content: url(data:image/svg+xml;utf8, ); } .devsite-nav-icon[data-icon="beta"]::before { content: url(data:image/svg+xml;utf8, ); } .color-scheme--dark .devsite-nav-icon[data-icon="beta"]::before { content: url(data:image/svg+xml;utf8, ); } .firebase-platform-label { font: 500 12px/24px Roboto,sans-serif; } /* Full-page platform selector dropdown */ /* Note: use menu variables in _elements.html file */ .full-page-selector-dropdown { border: none; position: relative; float: left; display: inline-block; } .full-page-selector-dropdown > .ds-selector-tabs { display: none; position: absolute; min-width: 160px; z-index: 1; } .full-page-selector-dropdown:hover .ds-selector-tabs { display: block; margin: 0; } .full-page-selector-dropdown:hover .kd-tabbutton { display: block; border: none; height: inherit; text-align: left; } .full-page-selector-dropdown:hover .kd-buttonbar { border: none; height: inherit; } .full-page-selector-dropdown h3:hover { color: var(--tenant-inverted-text-color); background-color: #039be5; } .full-page-selector-dropdown:hover .devsite-overflow-menu-button { display: none; } img.white-bg { padding: 5px; border-radius: 2px; background-color: #fff; }
Firestore Enterprise edition with MongoDB compatibility is now available!
Learn more. Send feedback Query Explain report reference Stay organized with collections Save and categorize content based on your preferences.
The following values are returned as results to operations performed with Firestore Query Explain .
Note: Query Explain is designed for useful ad hoc analysis; its report format will evolve to maximize ease of reading and understanding, not suitability for machine processing. Some metrics are expected to change as Cloud Firestore evolves (i.e., metrics may be added, removed, or updated) and are not covered by the same deprecation policy as other Cloud Firestore APIs. The following tables indicate which portions of the data are subject to change. Plan records Key Type Field subject to change? Description indexes_used List of Generic Structs Yes, the contents in the Struct response are subject to change. List of indexes selected for this query. See below .
Indexes used The contents of indexes used are subject to change as Cloud Firestore evolves.
Key Type Description query_scope String The scope at which a query is run. For example: Collection
, Collection Group
and Includes Ancestors
. properties String The index fields in a format. For example: (age ASC, __name__ ASC)
.
Execution statistics Aggregated execution statistics for the query.
Key Type Field subject to change? Description results_returned long No Total number of results returned, including documents, projections, aggregation results, keys. execution_duration Duration No Total time to execute the query in the backend. read_operations long No Total billable read operations. debug_stats Generic Struct Yes, the contents in the Struct response are subject to change. Debugging statistics from the execution of the query. See below .
Debug statistics The following results are helpful for debugging use cases and analysis of raw, optional statistics.
The contents of debug statistics are subject to change as Cloud Firestore evolves.
Key Type Description index_entries_scanned String Total number of index entries inspected during the query. documents_scanned String Total number of documents scanned during the query. billing_details Generic Struct Billing details including metrics like: "documents_billable", "index_entries_billable", "knn_vector_index_entries_billable", "min_query_cost".
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-04-21 UTC.
Need to tell us more? [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-21 UTC."],[],[]]