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

filters/sql: ignore more irrelevant queries from Postgres #507

Merged
merged 1 commit into from
Oct 4, 2019

Conversation

kyrylo
Copy link
Contributor

@kyrylo kyrylo commented Oct 4, 2019

No description provided.

@kyrylo kyrylo force-pushed the sql-filter-ignore branch from 80f5848 to 713c667 Compare October 4, 2019 06:33
Copy link
Contributor

@zefer zefer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you think it's an improvement to filter/ignore monitoring these queries? I ask because to ignore them is postgres-specific, it sets a precedent to do the same for other database engines.

@kyrylo
Copy link
Contributor Author

kyrylo commented Oct 4, 2019

These queries are executed not because of user app's code (e.g. a model JOINed some other model because I wrote it like that in a controller), but because postgres needs them for its own internal stuff. Displaying these queries is irrelevant to 95% of users and it is just noise.

If other database engines include similar queries, we will be ignoring them in a similar fashion.

@zefer
Copy link
Contributor

zefer commented Oct 4, 2019

Yeah, it makes sense, but on the flip-side, maybe we want to see all the queries, and it could be hard to do this for all engines.

@kyrylo
Copy link
Contributor Author

kyrylo commented Oct 4, 2019

I was judging from a viewpoint of a typical Rails developer. I doubt they will need it. Even super experienced users will likely not benefit from knowing that an internal postgres request was completed in a timely fashion (which is probably how it'll be). We've already shipped this filter with some rules, so that ship has sailed 😁

It won't be hard to maintain a blacklist, especially if users will be reporting queries that they don't find useful.

@zefer
Copy link
Contributor

zefer commented Oct 4, 2019

No ship has sailed at this early stage.

Anyway, I don't mean to stop you, it's just something to consider and we can change our approach later if needed. A couple of other options...

  • don't filter queries so all is monitored and visible to users
  • make it a notifier config option, so users can override if necessary
  • filter on the UI: either lower the contrast, hide them, or some other approach to show they are not 'app-code'

@kyrylo
Copy link
Contributor Author

kyrylo commented Oct 4, 2019

Thanks! Yeah, I agree, that can definitely work if we discover that people really want those service queries.

@kyrylo kyrylo merged commit 5ed4998 into master Oct 4, 2019
@kyrylo kyrylo deleted the sql-filter-ignore branch October 4, 2019 07:27
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.

2 participants