Skip to main content

Auto purge

  • May 18, 2018
  • 4 replies
  • 13 views

ashu123
Forum|alt.badge.img+1

Hello,
How to purge automatically when it reaches count to 1crore?

4 replies

naresh_way2
Forum|alt.badge.img+1
  • Participating Frequently
  • May 21, 2018

I have the same problem what we do?


Jim_Knicely
Forum|alt.badge.img+2
  • Participating Frequently
  • May 21, 2018

Hi,

Are you asking how to purge a table when you have a row count of 10 million, or purge when you've deleted 10 million records, or something else? The question is a bit vague :/


ashu123
Forum|alt.badge.img+1
  • Author
  • Participating Frequently
  • May 22, 2018

It should be automatically purged when deleted count reaches to 10 million across all tables, every time it should be less than 1 million


Jim_Knicely
Forum|alt.badge.img+2
  • Participating Frequently
  • May 22, 2018

Vertica provides two methods for determining when deleted data is eligible to be purged:

  1. Specifying the time for which delete data is saved
  2. Specifying the number of epochs that are saved

If you want to purge based on delete vector row counts, you can set up a cron job that runs every so often that issues a purge command when the dv row counts >= 10 million.