Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Re-writing a query interms of performance - response (9) by Kawish_Siddiqui

$
0
0

If you have option to revise PI, you can improve performance of this query. You might need to implement following in CUST_T table. This will help to maintain uniquness, support to other queries using USI and improved performance of mentioned or similar to mentioned queries.

PRIMARY INDEX ( FIRST_DT ,VISITOR_ID )
PARTITION BY RANGE_N(FIRST_DT BETWEEN DATE '2010-08-01' 
	AND	'2099-12-31' EACH INTERVAL '1' DAY )
UNIQUE INDEX ( FIRST_DT ,VISITOR_ID,CUST_ID );

 


Viewing all articles
Browse latest Browse all 14773

Trending Articles



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