ExplainMetrics

อธิบายเมตริกสำหรับการค้นหา

การแสดง JSON
{
  "planSummary": {
    object (PlanSummary)
  },
  "executionStats": {
    object (ExecutionStats)
  }
}
ช่อง
planSummary

object (PlanSummary)

ข้อมูลระยะการวางแผนสำหรับการค้นหา

executionStats

object (ExecutionStats)

สถิติรวมจากการดำเนินการค้นหา แสดงเมื่อตั้งค่า ExplainOptions.analyze เป็น "จริง" เท่านั้น

PlanSummary

ข้อมูลระยะการวางแผนสำหรับการค้นหา

การแสดง JSON
{
  "indexesUsed": [
    {
      object
    }
  ]
}
ช่อง
indexesUsed[]

object (Struct format)

ดัชนีที่เลือกสำหรับคำค้นหา 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

string (int64 format)

จำนวนผลลัพธ์ทั้งหมดที่ส่งคืน รวมถึงเอกสาร การฉายภาพ ผลการรวม คีย์

executionDuration

string (Duration format)

เวลาทั้งหมดที่ใช้ในการค้นหาในแบ็กเอนด์

ระยะเวลาเป็นวินาทีที่มีเลขเศษส่วนไม่เกิน 9 หลัก ลงท้ายด้วย "s" เช่น "3.5s"

readOperations

string (int64 format)

การดำเนินการอ่านทั้งหมดที่เรียกเก็บเงินได้

debugStats

object (Struct format)

การแก้ไขข้อบกพร่องทางสถิติจากการดำเนินการค้นหา โปรดทราบว่าสถิติการแก้ไขข้อบกพร่องอาจมีการเปลี่ยนแปลงเมื่อ Firestore พัฒนาขึ้น It could include: { "indexes_entries_scanned": "1000", "documents_scanned": "20", "billing_details" : { "documents_billable": "20", "index_entries_billable": "1000", "min_query_cost": "0" } }