Does the DELETE command write data?

Moderator: NorbertKrupa

Post Reply
User avatar
Julie
Master
Master
Posts: 221
Joined: Thu Apr 19, 2012 9:29 pm

Does the DELETE command write data?

Post by Julie » Fri Jul 20, 2012 2:31 pm

Hi all,

The DELETE command has the "/*+ direct */" option. According to the SQL Reference Manual (page 775) this option "Writes the data directly to disk (ROS) bypassing memory (WOS)."

My question is what data is being written? I'm deleting data!

Does this refer to logging information?
Thanks,
Juliette

Rick
Newbie
Newbie
Posts: 23
Joined: Thu Jul 26, 2012 2:46 pm

Re: Does the DELETE command write data?

Post by Rick » Fri Jul 27, 2012 4:52 pm

When a record is deleted in Vertica, it is not actually deleted per say. Instead it is 'marked' for deletion, and then every once in a while you can purge this deleted data (vertica recommends you do this when deleted data exceeds 10% of the total database size).

Post Reply

Return to “New to Vertica”