I had a question today, while considering way to [potentially improve performance and stability pf my ETL’s. Basically, does Netezza need to be groomed when truncating a table as part of a destructive load strategy? The answer is no, a Netezza table does not need to be groomed after a truncate operation—see IBM Tip quoted below.
Tip: When you delete all the contents of a table, consider using the TRUNCATE command rather than the DELETE command, which eliminates the need to run the GROOM TABLE command.”
Once the data is loaded, following the truncate, running Generate Statistics on the table is strongly recommended.
- Netezza – Useful links
- Netezza / PureData – Table Effective Practices
- PureData – CURRENT_TIMESTAMP Function
- Netezza/PureData SQL Date Formatting Examples
- Netezza – How GET to Database UTC Offset With SQL
- Netezza/PureData – Which to Run First–Statistics or Groom?
- Netezza/PureData – Dictionary Views
- Netezza/PureData – Table Distribution Key Practices
PUREDATA SYSTEM FOR ANALYTICS, PUREDATA SYSTEM FOR ANALYTICS 7.2.1, IBM NETEZZA DATABASE USER DOCUMENTATION, NETEZZA SQL COMMAND REFERENCE, GENERATE STATISTICS
PUREDATA SYSTEM FOR ANALYTICS, PUREDATA SYSTEM FOR ANALYTICS 7.2.1, IBM NETEZZA DATABASE USER DOCUMENTATION, NETEZZA SQL COMMAND REFERENCE,GRoom table
PureData System for Analytics, PureData System for Analytics 7.2.1, IBM Netezza database user documentation, Netezza SQL command reference, truncate