[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-25。"],[],[],null,["# Understanding query performance metrics\n\nThe **Query Performance Metrics** Explore in [System Activity](/looker/docs/usage-reports-with-system-activity-explores) provides detailed breakdowns of each query that is run from your Looker instance.\n\nFor example, you can use this Explore to investigate which components of a query took longest to load. You can also use this Explore to identify query performance trends and anomalies.\n\nFor more information about the Explores that are available in System Activity, see the [Monitoring Looker usage with System Activity Explores](/looker/docs/usage-reports-with-system-activity-explores) documentation page.\n\nViewing query performance metrics\n---------------------------------\n\nQuery performance metrics are visible in the System Activity **Query Performance Metrics** Explore. You must be a Looker admin or have the `see_system_activity` permission to view the **Query Performance Metrics** Explore.\n\nUnderstanding the Looker query lifecycle\n----------------------------------------\n\nEach query that Looker sends to your database goes through several phases, each with several steps. Each of these steps is represented as a dimension in the **Query Performance Metrics** Explore.\n\nAt a high level, the phases can be conceptualized as follows:\n\n1. **[Asynchronous worker phase](#asynchronous_worker_phase_metrics)**: First, the query task must be assigned to an available asynchronous worker. There may be queue time if no worker is available.\n2. **[Initialization phase](#initialization_phase_metrics)**: Once an asynchronous worker is assigned, the Looker instance runs several initialization steps to prepare the query.\n3. **[Connection handling phase](#connection_handling_phase_metrics)**: Once initialization is complete, the Looker instance establishes a connection to the customer database.\n4. **[Main query phase](#main_queries_phase_metrics)** : Once the Looker instance establishes a connection to the customer database, the main query is executed on the customer database. Additional queries to compute results, such as [totals](/looker/docs/table-options#totals), may also be run depending on the options that are chosen for the query. If the query is not [streamed](/looker/docs/downloading#streaming_query_results), then the queries are loaded into memory on the Looker instance. After this, the connection from the Looker instance to the customer database is closed.\n5. **[Post-query phase](#post-query_phase_metrics)**: Finally, the Looker instance runs several post-query steps to prepare the query for its next destination. At this point, the asynchronous worker is released.\n\nQuery performance metrics\n-------------------------\n\nThe following sections list each query phase and query step in chronological order.\n\n### Asynchronous worker phase metrics\n\n### Initialization phase metrics\n\n### Connection handling phase metrics\n\n### Main queries phase metrics\n\n### Post-query phase metrics\n\nBigQuery BI Engine metrics\n--------------------------\n\nIf you are using [BigQuery BI Engine](/bigquery/docs/bi-engine-intro) with\nLooker, you can use the **Query Performance Metrics** Explore to view\ndatabase-specific information about your queries. Queries that don't use\nBI Engine and queries of databases other than BigQuery databases\nreturn null values for these metrics.\n\nTroubleshooting with query performance metrics\n----------------------------------------------\n\nAnalyzing query metrics can help improve performance on your Looker instance. To get started, select the [**Performance Recommendations** dashboard](/looker/docs/system-activity-dashboards#performance_recommendations_dashboard) from the list of [System Activity dashboards](/looker/docs/system-activity-dashboards)."]]