Skip to content

Commit

Permalink
chore: do not include plan time in query time due to compatability
Browse files Browse the repository at this point in the history
  • Loading branch information
uptickmetachu committed Jan 21, 2024
1 parent 263dd11 commit 75ee5fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions django_pev/utils/queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def get_query_stats() -> list[QueryStatInfo]:
queryid as query_id,
md5(query) as query_md5,
rolname AS user,
(total_plan_time + total_exec_time) as total_time,
(total_exec_time) as total_time,
mean_exec_time as mean_time,
stddev_exec_time as stddev_time,
shared_blks_hit,
Expand All @@ -168,7 +168,7 @@ def get_query_stats() -> list[QueryStatInfo]:
pg_database.datname = current_database()
), totals AS (
SELECT
SUM(total_plan_time + total_exec_time) as total_time,
SUM(total_exec_time) as total_time,
SUM(calls) as total_calls,
SUM(shared_blks_hit) as total_shared_blks_hit,
SUM(shared_blks_dirtied) as total_shared_blks_dirtied,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "django-pev"
version = "0.1.8"
version = "0.1.9"
description = "Context manager to upload explain plans to https://explain.dalibo.com/"
authors = ["william chu <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit 75ee5fe

Please sign in to comment.