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:
Jeffrey Paul 2025-07-29 04:20:43 +02:00
parent 1fded42651
commit 037bbfb813
2 changed files with 7 additions and 338176 deletions

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) {

338181
log.txt

File diff suppressed because it is too large Load Diff