We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2788719 commit b3992d9Copy full SHA for b3992d9
config/initializers/log_slow_sql_queries.rb
@@ -42,6 +42,9 @@
42
# Skip transaction that may be blocked
43
next if data[:sql].match?(/BEGIN|COMMIT/)
44
45
+ # Skip tenant creation (load dump)
46
+ next if data[:sql][..120].include?("Dumped by pg_dump")
47
+
48
# Skip smaller durations
49
duration = ((finish - start) * 1000).round(4)
50
next if duration <= slow_sql_threshold
0 commit comments