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

Extend slow query threshold to reduce logs #171

Merged
merged 1 commit into from
Oct 6, 2023
Merged

Conversation

KOBA789
Copy link
Collaborator

@KOBA789 KOBA789 commented Oct 6, 2023

What

クエリが slow であると判定される閾値を 300ms から 10s に伸ばします。

Why

300ms を閾値とすると、あまりに多くのクエリが slow 判定され、あまりに多くの slow query log が出力されてしまい、パフォーマンス分析の際にノイズになるため。
io では pg_stat_statements 等を用いて slow query を分析できるため、アプリケーションレベルで閾値の厳しいログを吐く意味はない。

@KOBA789
Copy link
Collaborator Author

KOBA789 commented Oct 6, 2023

焼き上がり待ち

@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 6, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@u1-liquid u1-liquid merged commit f6383af into io Oct 6, 2023
17 checks passed
@u1-liquid u1-liquid deleted the reduce-slow-query-log branch October 6, 2023 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants