Reduce slow query threshold from 50ms to 25ms

This will help identify performance issues earlier by logging
any database query that takes longer than 25 milliseconds.
This commit is contained in:
sneak committed 2025-07-29 04:20:43 +02:00
1 parent 1fded42651
commit 037bbfb813
2 files changed
+7 -338176

No files matched your search

+1 -1
View File
@@ -8,7 +8,7 @@ import (
"git.eeqj.de/sneak/routewatch/internal/logger"
)
const slowQueryThreshold = 50 * time.Millisecond
const slowQueryThreshold = 25 * time.Millisecond
// logSlowQuery logs queries that take longer than slowQueryThreshold
func logSlowQuery(logger *logger.Logger, query string, start time.Time) {
+6 -338175
View File
File diff suppressed because it is too large. Load diff