Skip to content

Commit ca0388e

Browse files
committed
fix: replace MD5 with SHA256
1 parent b196b62 commit ca0388e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

config/initializers/query_performance_monitoring.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def track_query_stats(payload, duration)
6969

7070
# Normalize query for grouping (remove values)
7171
normalized = normalize_query(payload[:sql])
72-
stats_key = "query_stats:#{Digest::MD5.hexdigest(normalized)}"
72+
stats_key = "query_stats:#{Digest::SHA256.hexdigest(normalized)}"
7373

7474
# Update counters and query info
7575
Rails.cache.redis.pipelined do |pipeline|

0 commit comments

Comments
 (0)