說明查詢的指標。
JSON 表示法 |
---|
{ "planSummary": { object ( |
欄位 | |
---|---|
planSummary |
查詢的規劃階段資訊。 |
executionStats |
執行查詢後匯總的統計資料。只有在 |
PlanSummary
查詢的規劃階段資訊。
JSON 表示法 |
---|
{ "indexesUsed": [ { object } ] } |
欄位 | |
---|---|
indexesUsed[] |
為查詢選取的索引。For example: [ {"queryScope": "Collection", "properties": "(foo ASC, name ASC)"}, {"queryScope": "Collection", "properties": "(bar ASC, name ASC)"} ] |
ExecutionStats
查詢的執行統計資料。
JSON 表示法 |
---|
{ "resultsReturned": string, "executionDuration": string, "readOperations": string, "debugStats": { object } } |
欄位 | |
---|---|
resultsReturned |
傳回的結果總數,包括文件、投影、匯總結果和鍵。 |
executionDuration |
在後端執行查詢的總時間。 時間長度以秒為單位,最多可有 9 個小數位數,並結尾為「 |
readOperations |
可計費讀取作業總數。 |
debugStats |
針對執行查詢的統計資料進行偵錯。請注意,隨著 Firestore 演進,偵錯統計資料可能會有所變動。It could include: { "indexes_entries_scanned": "1000", "documents_scanned": "20", "billing_details" : { "documents_billable": "20", "index_entries_billable": "1000", "min_query_cost": "0" } } |