Archives of the TeradataForum
Message Posted: Thu, 18 Dec 2003 @ 14:02:49 GMT
We are thinking about using Partitioned Primary Indexes on some of our bigger tables. Does anyone have any feedback good or bad about using PPIs (i.e. performance gains/losses, access problems, etc)?
Does something like the following make sense if I want to partition in monthly chunks. Our tables are loaded each month with an additional month of information. Any thoughts/suggestions?
Would something like the following make sense for yearly/monthly partition, or is there a better way to do this? I'm not sure if the parser would know where to find the data this way. I tried to do a partition by year then by month but didn't have any luck.
CREATE TABLE my_db.my_table ,NO FALLBACK , NO BEFORE JOURNAL, NO AFTER JOURNAL (date_invoice DATE FORMAT 'YY/MM/DD' NOT NULL, join_no INTEGER NOT NULL) PRIMARY INDEX (date_invoice, join_no) PARTITION BY (extract(year from date_invoice) * 100 + extract(month from date_invoice))
|Copyright 2016 - All Rights Reserved|
|Last Modified: 15 Jun 2023|