Debugging statistics from the execution of the query. Note that the
debugging stats are subject to change as Firestore evolves. It could
include:
{
"indexes_entries_scanned": "1000",
"documents_scanned": "20",
"billing_details" : {
"documents_billable": "20",
"index_entries_billable": "1000",
"min_query_cost": "0"
}
}
[[["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-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eExecutionStats\u003c/code\u003e class in the Google.Cloud.Firestore.V1 API provides execution statistics for queries, including debugging information and resource usage.\u003c/p\u003e\n"],["\u003cp\u003eThis API class has several versions available, with the latest being 3.10.0, and provides various older versions dating back to 2.3.0 for use.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eExecutionStats\u003c/code\u003e class includes properties like \u003ccode\u003eDebugStats\u003c/code\u003e, \u003ccode\u003eExecutionDuration\u003c/code\u003e, \u003ccode\u003eReadOperations\u003c/code\u003e, and \u003ccode\u003eResultsReturned\u003c/code\u003e to detail query performance.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eExecutionStats\u003c/code\u003e class implements interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, with inheritance from \u003ccode\u003eobject\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThere are 2 constructors for creating new instances of \u003ccode\u003eExecutionStats\u003c/code\u003e, one that creates a new instance and one that takes in another \u003ccode\u003eExecutionStats\u003c/code\u003e object as a parameter.\u003c/p\u003e\n"]]],[],null,["# Firestore v1 API - Class ExecutionStats (3.10.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.10.0 (latest)](/dotnet/docs/reference/Google.Cloud.Firestore.V1/latest/Google.Cloud.Firestore.V1.ExecutionStats)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.9.0/Google.Cloud.Firestore.V1.ExecutionStats)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.8.0/Google.Cloud.Firestore.V1.ExecutionStats)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.7.0/Google.Cloud.Firestore.V1.ExecutionStats)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.6.0/Google.Cloud.Firestore.V1.ExecutionStats)\n- [3.5.1](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.5.1/Google.Cloud.Firestore.V1.ExecutionStats)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.4.0/Google.Cloud.Firestore.V1.ExecutionStats)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.3.0/Google.Cloud.Firestore.V1.ExecutionStats)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.2.0/Google.Cloud.Firestore.V1.ExecutionStats)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.1.0/Google.Cloud.Firestore.V1.ExecutionStats)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.0.0/Google.Cloud.Firestore.V1.ExecutionStats)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/2.5.0/Google.Cloud.Firestore.V1.ExecutionStats)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/2.4.0/Google.Cloud.Firestore.V1.ExecutionStats)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/2.3.0/Google.Cloud.Firestore.V1.ExecutionStats) \n\n public sealed class ExecutionStats : IMessage\u003cExecutionStats\u003e, IEquatable\u003cExecutionStats\u003e, IDeepCloneable\u003cExecutionStats\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Firestore v1 API class ExecutionStats.\n\nExecution statistics for the query. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ExecutionStats \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ExecutionStats](/dotnet/docs/reference/Google.Cloud.Firestore.V1/latest/Google.Cloud.Firestore.V1.ExecutionStats), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ExecutionStats](/dotnet/docs/reference/Google.Cloud.Firestore.V1/latest/Google.Cloud.Firestore.V1.ExecutionStats), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ExecutionStats](/dotnet/docs/reference/Google.Cloud.Firestore.V1/latest/Google.Cloud.Firestore.V1.ExecutionStats), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Firestore.V1](/dotnet/docs/reference/Google.Cloud.Firestore.V1/latest/Google.Cloud.Firestore.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Firestore.V1.dll\n\nConstructors\n------------\n\n### ExecutionStats()\n\n public ExecutionStats()\n\n### ExecutionStats(ExecutionStats)\n\n public ExecutionStats(ExecutionStats other)\n\nProperties\n----------\n\n### DebugStats\n\n public Struct DebugStats { get; set; }\n\nDebugging statistics from the execution of the query. Note that the\ndebugging stats are subject to change as Firestore evolves. It could\ninclude:\n{\n\"indexes_entries_scanned\": \"1000\",\n\"documents_scanned\": \"20\",\n\"billing_details\" : {\n\"documents_billable\": \"20\",\n\"index_entries_billable\": \"1000\",\n\"min_query_cost\": \"0\"\n}\n}\n\n### ExecutionDuration\n\n public Duration ExecutionDuration { get; set; }\n\nTotal time to execute the query in the backend.\n\n### ReadOperations\n\n public long ReadOperations { get; set; }\n\nTotal billable read operations.\n\n### ResultsReturned\n\n public long ResultsReturned { get; set; }\n\nTotal number of results returned, including documents, projections,\naggregation results, keys."]]