From 75ee5fe70ac5764bdc3b1c753b0db5b56e148e06 Mon Sep 17 00:00:00 2001 From: William Chu Date: Mon, 22 Jan 2024 09:37:00 +1100 Subject: [PATCH] chore: do not include plan time in query time due to compatability --- django_pev/utils/queries.py | 4 ++-- pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/django_pev/utils/queries.py b/django_pev/utils/queries.py index 041fdaf..49b9eb1 100644 --- a/django_pev/utils/queries.py +++ b/django_pev/utils/queries.py @@ -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, @@ -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, diff --git a/pyproject.toml b/pyproject.toml index 2fa31f4..d6e3960 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 "] readme = "README.md"