Reputation: 5457
Oracle and SQL Server have this feature which allows to switch a tables partition into an existing table (its discussed for example here). I am unable to find a similar feature for Sybase ASE.
Question Part A: Is there a way to switch partitions in Sybase ASE?
If the answer is 'no' I am unsure how to proceed. My situtation is that I have a very large table which is indexed by dates. Now I need to add data for a new Date T_n+1.
large table new
-------------------- ------
|T1|T2|T3| .... |Tn| + |Tn+1|
-------------------- ------
The insert is fast enough if I drop the index on the table first, but the recreation of the index takes a lot of time. There has to be a better way!
Question Part B: what is the fastest way to add this data for Tn+1 into the large table.
Upvotes: 0
Views: 276
Reputation: 34174
Answer Part A:
While Sybase ASE supports move partition and merge partition, these commands work within a single table, ie, Sybase ASE does not support the movement of partitions between (different) tables.
Answer Part B:
Assuming dropping and recreating indices is too expensive (in terms of time; in terms of users needing indices to access other partitions), you're not left with a lot of options to speed up the inserts other than some basics:
Upvotes: 1