Quantcast
Channel: Teradata Developer Exchange - Blog activity for carrie's blog
Viewing all articles
Browse latest Browse all 1058

When Your Dirty Read is Kept Waiting - comment () by carrie

$
0
0
Karam, You can delete all the rows in a partition by specifying a DELETE FROM ppi-table WHERE... command where the partitioning key value or range of partitioning key values describes rows contained within that partition. This all-AMPs DELETE statement will place a write lock on the table for the time it takes to perform the deletes from the PPI table and to maintain the NUSIs or/or join indexes. After the DELETE statement is completed all the rows within that partition will have been deleted (and the various indexes updated), but the partition will still be defined on the PPI table. To remove the empty partition, you then issue an ALTER TABLE that will drop that partition from the PPI definition, even though it has already had its rows deleted. Under these conditions, the exclusive lock will be held for a shorter length of time during the ALTER using this technique.

Viewing all articles
Browse latest Browse all 1058

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>