Best Practice For Rebuilding Table
Fairly new to Vertica here so I apologize in advance.
We have a table that needs to be available as much as possible for query purposes. Every day we need to rebuild the data set within this table.
Currently we build a staging table and run insert commands to load the data. Then once completed we alter table rename swapping our staging table in place of our primary table and then finally dropping our old primary table.
ALTER TABLE primary_table , staging_table RENAME TO staging_table, primary_table;
This appears to be working Is this the technique that we should be using or is there something else?