Index traversal forbidding the use of Partitions - response (4) by mjasrotia
I am on TD 13 Given below are the Explains without and with the PROD_ID Filters. Can you please help me understand why Teradata is creating a Bit map even in the cases where I am using just one...
View ArticleSampled Stats vs Time trade-off - response (1) by dnoeth
Did you read Carrie Ballinger's blogs on "Statistics Recommendation" for your release? 13/13.10/14? For some really large tables there's no other way than sample stats. You just have to be carefull...
View ArticleError while compiling a SP!!! - topic by barani_sachin
Hi all, I have this below statement. sel case when date is not null then read more
View ArticleIndex traversal forbidding the use of Partitions - response (5) by dnoeth
Hi Manik, according to explain the 2nd plan is much more efficient. So what's the actual runtime? Do you have DBQL stepinfo enabled to see the resource usage of each step? BMSMS might be used by the...
View ArticleError while compiling a SP!!! - response (1) by dnoeth
Your code mixes SUBSTRING and SUBSTR syntax: substring(cast(extract(year from date) as varchar(4)) FROM 3 FOR 2) or substr(cast(extract(year from date) as varchar(4)),3,2) It's ODBC syntax (like...
View ArticleQuery Tuning - response (6) by MBR
we are implementing EDW and its not a comma delemited we are inserting the whole part as a single column also some more columns are there in that table. select part is taking more time. actually this...
View ArticleIndex traversal forbidding the use of Partitions - response (6) by mjasrotia
DIeter - Plan wise, second one more efficient but its taking 4 secs without PROD_ID filter whereas the first one is takinf almost 6 mins. Unfortunately I can not access DBQL tables. Regarding BMSMS....
View ArticleUnable to connect to TeraData v13.0 from .NET client - topic by venkateshsrini3
Hi All, I'm new to TeraData data access. I have downloaded the latest 14.10.0.0 drivers. I have Teradata v13.0 running on the server. After installing the driver, I'm connecting from server explorer of...
View ArticleQuery Tuning - response (7) by dnoeth
Hi MBR, it's not comma-delimited, it's dash-delimited ;-) 100% CPU for which time? When you need it this way you have to pay the costs, i.e. CPU. How often do you run this INS/SEL? It's all the rows...
View ArticleError while compiling a SP!!! - response (2) by barani_sachin
Thank you so much Dieter :) Oh boy i was scratching ma head for two days...
View ArticleIndex traversal forbidding the use of Partitions - response (7) by dnoeth
Hi Manik, strange, but it's two different indexes, #4 and #8, could you do a HELP INDEX to get details? And show the partitioning/index definition, i'm a bit confuded, you said the table is partitioned...
View ArticleWill volatile tables be dropped? - topic by barani_sachin
Hi All, I have some n No. of volatile tables in a SP. is there any scenario where a Volatile table will be dropped automatically? like wen i run out of spool space that n - (n-1)th table will be...
View ArticleWill volatile tables be dropped? - response (1) by dnoeth
When you run out of spool during the CREATE VOLATILE TABLE this specific table will not be created, but otherwise VTs will not be dropped automatically, only when the session logs off. If you have lots...
View ArticleIndex traversal forbidding the use of Partitions - response (8) by mjasrotia
Yes. Shipment date is both Partitioned and It has a NUSI as well. Is it a right way or it dosen't makes sense as even I was bit surprised to see this but hard to convince all the colleagues. Here is...
View ArticleIndex traversal forbidding the use of Partitions - response (9) by mjasrotia
Forgot this:) PARTITION BY RANGE_N(Shipment_Dt BETWEEN DATE '2007-01-01' AND DATE '2020-12-31' EACH INTERVAL '7' DAY ) INDEX ( Prod_Id ) INDEX ( Rtl_Id ,Prod_Id ,Shipment_Dt ) INDEX ( Rtl_Id...
View ArticleWill volatile tables be dropped? - response (2) by asadali.khan
As you said you have not mentioned the number of volatile tables you are trying to create in that SP. As far as i know, 64 volatile tables can be created at one time.
View ArticleIndex traversal forbidding the use of Partitions - response (10) by dnoeth
Hi Manik, did anybody ever test/check via DBQL Objects or ObjectUseCount, if all those NUSIs are usefull? Rtl_Id is the PI, partitioned by Shipment_Dt, so the same as index #12 Rtl_Id,Shipment_Dt, will...
View ArticleIndex traversal forbidding the use of Partitions - response (11) by mjasrotia
We are in the process of cleaning up unused NUSIs and I will surely consider your inputs for other tables as well. But the issue still stands with the BMSMS thing Thanks for all the help Manik
View ArticleFull join on 1=2 - response (6) by Tnewbee
Dieter! This is view! REPLACE VIEW Vdbname.View1 AS LOCKING ROW FOR ACCESS SEL D.PLN_ID,D.CLT_ID,D.CLT_RET_AGE, D.CO_CLT_RET_AGE, D.CO_CLT_WD, D.CTCT_WD,D.PLNDT_WD,...
View Articleinserting string value in to table - response (3) by SeenuGuddu
Thanks guys for replying back. The issue is single quote after 9 and this thorwing the error and the data has been fixed from the soruce after identifying the issue.
View Article