|
Archives of the TeradataForumMessage Posted: Thu, 03 Jul 2003 @ 10:53:46 GMT
Anomy, Try this: -- If pmart.fact_sales is a set table (default) -- Else, if pmart.fact_sales is a multiset table Insert into pmart.fact_sales_temp Select * From pmart.fact_sales -- This insert step needs to run in bteq, it will not work as intended in queryman. By placing the ";" in front of the second insert statement, the optimizer will treat these two insert statements as a "Multi-Statement" insert. By doing so, the RDBMS will not log the transactions in case of roll-back (which is the issue causing your insert to take so long...assuming the slow insert isn't a function of the tables skewed distribution) Drop Table pmart.fact_sales; Rename Table pmart.fact_sales_temp as pmart.fact_sales; Hope this helps, Clay
| ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||