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 b196b62 commit ca0388eCopy full SHA for ca0388e
1 file changed
config/initializers/query_performance_monitoring.rb
@@ -69,7 +69,7 @@ def track_query_stats(payload, duration)
69
70
# Normalize query for grouping (remove values)
71
normalized = normalize_query(payload[:sql])
72
- stats_key = "query_stats:#{Digest::MD5.hexdigest(normalized)}"
+ stats_key = "query_stats:#{Digest::SHA256.hexdigest(normalized)}"
73
74
# Update counters and query info
75
Rails.cache.redis.pipelined do |pipeline|
0 commit comments