Skip to content

Conversation

guillesd
Copy link
Collaborator

The idea of this PR is to make this tool a bit more useful (and visually appealing). I think generally it is good to have some better profiling tools to explore queries.

To use the tool:

  1. Build this branch (see https://duckdb.org/docs/stable/dev/building/python)
  2. Run the following in DuckDB
PRAGMA enable_profiling = 'json';
PRAGMA profiling_output = './tmp/profile.json';
SELECT ... FROM ...;
  1. Run the script (I do it with uv):
uv run python -m duckdb.query_graph tmp/complex_profile.json

Which should yield something like the following screenshot:
Screenshot 2025-10-22 at 17 18 02

@guillesd guillesd marked this pull request as draft October 22, 2025 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant