Skip to content

Commit

Permalink
Add an example QueryStats query
Browse files Browse the repository at this point in the history
  • Loading branch information
scotttrinh committed Dec 19, 2024
1 parent 465966f commit 60786b4
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion docs/changelog/6_x.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ automatically suggested:
Upgrading
=========

.. edb:collapsed::
**Local instances**

To upgrade a local project, first ensure that your CLI is up to date with
Expand Down Expand Up @@ -121,7 +123,24 @@ upgrade more frequently.
Query performance observability
-------------------------------

We now store statistics about query performance.
We now store statistics about query performance. These statistics are available
in ``sys::QueryStats`` objects.

.. code-block:: edgeql
select sys::QueryStats {
query,
queryType,
tag,
plans,
total_plan_time,
mean_plan_time,
calls,
total_exec_time,
mean_exec_time,
} filter .branch.name = sys::get_current_branch();
More details to come in the reference documentation.

``ext::postgis``
----------------
Expand Down

0 comments on commit 60786b4

Please sign in to comment.