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

Filter out views that took no time in the database for the most time … #225

Merged
merged 1 commit into from
Dec 5, 2017

Conversation

hvdklauw
Copy link
Contributor

…spend in database requests on the dashboard.

Fixes #217

…spend in database requests on the dashboard.
@albertyw albertyw self-requested a review December 4, 2017 09:40
@avelis
Copy link
Collaborator

avelis commented Dec 5, 2017

@albertyw Do you see any potential issues here?

@albertyw
Copy link
Member

albertyw commented Dec 5, 2017

I think this is fine, though a test case would be nice. I'm wondering what requests actually take 0 time; is it a bug that should be fixed?

@albertyw albertyw requested a review from avelis December 5, 2017 08:50
@hvdklauw
Copy link
Contributor Author

hvdklauw commented Dec 5, 2017

@albertyw No, this is just a nice trick to filter out the views that have no (NULL) time on the database. Because otherwise they show up at the front because by default NULL are ordered first.

@hvdklauw
Copy link
Contributor Author

hvdklauw commented Dec 5, 2017

The same trick as actually already used over here: https://github.com/jazzband/silk/blob/master/silk/views/requests.py#L38

@avelis avelis merged commit f1ef5d1 into jazzband:master Dec 5, 2017
@hvdklauw hvdklauw deleted the issue/217 branch December 5, 2017 18:58
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.

3 participants