1
0
mirror of https://git.boykissers.com/pawkey/pawkey-sk.git synced 2025-12-20 04:04:16 +00:00

add slowQueryThreshold setting to configure slow query warning

This commit is contained in:
Hazelnoot
2025-05-30 08:10:46 -04:00
parent 5d8a8bba2a
commit b057d3be0d
6 changed files with 25 additions and 5 deletions

View File

@@ -115,6 +115,10 @@ db:
user: postgres
pass: ci
# Log a warning to the server console if any query takes longer than this to complete.
# Measured in milliseconds; set to 0 to disable. (default: 300)
slowQueryThreshold: 300
# If false, then query results will be cached in redis.
# If true (default), then queries will not be cached.
# This will reduce database load at the cost of increased Redis traffic and risk of bugs and unpredictable behavior.

View File

@@ -57,6 +57,10 @@ db:
user: postgres
pass: postgres
# Log a warning to the server console if any query takes longer than this to complete.
# Measured in milliseconds; set to 0 to disable. (default: 300)
slowQueryThreshold: 300
# If false, then query results will be cached in redis.
# If true (default), then queries will not be cached.
# This will reduce database load at the cost of increased Redis traffic and risk of bugs and unpredictable behavior.

View File

@@ -118,6 +118,10 @@ db:
user: example-misskey-user
pass: example-misskey-pass
# Log a warning to the server console if any query takes longer than this to complete.
# Measured in milliseconds; set to 0 to disable. (default: 300)
slowQueryThreshold: 300
# If false, then query results will be cached in redis.
# If true (default), then queries will not be cached.
# This will reduce database load at the cost of increased Redis traffic and risk of bugs and unpredictable behavior.

View File

@@ -121,13 +121,15 @@ db:
user: sharkey
pass: example-misskey-pass
# Log a warning to the server console if any query takes longer than this to complete.
# Measured in milliseconds; set to 0 to disable. (default: 300)
slowQueryThreshold: 300
# If false, then query results will be cached in redis.
# If true (default), then queries will not be cached.
# This will reduce database load at the cost of increased Redis traffic and risk of bugs and unpredictable behavior.
#disableCache: false
#
# Extra Connection options
#extra:
# ssl: true