Skip to content

Commit

Permalink
Reduced the history pruning query interval to 5 days
Browse files Browse the repository at this point in the history
  • Loading branch information
rishi-salunkhe-mettle committed Sep 11, 2024
1 parent 791f1b6 commit 790a6bd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func prepareHistoryPruningStatements(s *Store) error {
pruningThreshold := viper.GetInt("pruning_threshold")

thresholdString := strconv.Itoa(pruningThreshold)
queryIntString := strconv.Itoa(pruningThreshold * 2)
queryIntString := strconv.Itoa(pruningThreshold + 7200)

distinctURLStatementQueryInterval, err = s.DB.Prepare(`
select DISTINCT(url) FROM fhir_endpoints_info_history
Expand Down

0 comments on commit 790a6bd

Please sign in to comment.