Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[enhancement request] - Add an option to track what Python lines causes the most SQL queries #478

Closed
sorasful opened this issue Jun 16, 2021 · 2 comments

Comments

@sorasful
Copy link

sorasful commented Jun 16, 2021

Hello,

When using Django-Silk on a project, it is useful to know how many SQL queries are made, where they came from. For now we have a pretty clear understanding of this, we can sort by number of join, time consumed, the type of requests.

For now, we can take any query and see why it was called.

But I wonder, wouldn't it be a good feature to be able to see, for a specific line, how many SQL queries are emitted ? Or maybe there's already something for this and I just didn't find it.

What do you think ?

Thanks.

@auvipy
Copy link
Contributor

auvipy commented Nov 10, 2021

if you have implementation detail feel free to share

@SebCorbin
Copy link
Contributor

I would say that displaying similar queries count (see #439) would be enough to identify which line are causing large number of queries in most cases.

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

No branches or pull requests

3 participants