Skip to content

Commit

Permalink
Skip explicitly deleting the old records from payload_statuses. We dr…
Browse files Browse the repository at this point in the history
…op the partition to delete the records anyway. (#226)
  • Loading branch information
dehort authored Nov 21, 2024
1 parent a3be798 commit df7233e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deployments/clowdapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,9 @@ objects:
echo "MAX_NUMBER_OF_RETRIES: $MAX_NUMBER_OF_RETRIES"
echo "SLEEP_TIME: $SLEEP_TIME"
psql -c "DELETE FROM payload_statuses WHERE created_at < (NOW() - interval '$RETENTION_DAYS days');"
#psql -c "DELETE FROM payload_statuses WHERE created_at < (NOW() - interval '$RETENTION_DAYS days');"
#psql -c "VACUUM ANALYZE payload_statuses;"
psql -c "DELETE FROM payloads WHERE created_at < (NOW() - interval '$RETENTION_DAYS days');"
psql -c "VACUUM ANALYZE payload_statuses;"
psql -c "VACUUM ANALYZE payloads;"
for i in $(seq 1 ${MAX_NUMBER_OF_RETRIES})
Expand Down

0 comments on commit df7233e

Please sign in to comment.