Quantcast
Channel: Teradata Forums - Database
Browsing all 14773 articles
Browse latest View live

Index traversal forbidding the use of Partitions - response (1) by dnoeth

Hi Manik, SHIPMENT_DT is used in the WHERE-condition, too? Is partition elimination working as expected when the NUSI-conditions are removed? The optimizer decides (based on existing stats) which is...

View Article


Index traversal forbidding the use of Partitions - response (2) by mjasrotia

Yes Dieter, Shipment_Dt is used in the Where condition as well. And it uses the Partition elimination when the Condition commented below is removed from the query.  I don't understand why Prod_Id has...

View Article


Sampled Stats vs Time trade-off - topic by m.tahoon

Our Goal is we need to minimize collect sats time: we do use Combination for Full / Sample stats based on Row size: - Smaple 50% for all table's statitics combination for tables  > 5 Billion Rows -...

View Article

Query Tuning - response (4) by MBR

Hi Dieter, i am inserting into other table by selecting these columns for this i hv written INSERT SELECT statement as of my idea INSERT SELECT is faster than export if we export it then again we need...

View Article

Index traversal forbidding the use of Partitions - response (3) by dnoeth

Hi Manik, could you show the different explains? Which release are you running? Dieter

View Article


Query Tuning - response (5) by dnoeth

Hi MBR, why do you need a table with denormalized comma-delimited data in it? Did you check which part is slow, the select or the insert? What's the DDL of both tables? Dieter

View Article

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 Article

Sampled 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 Article


Error 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 Article


Index 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 Article

Error 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 Article

Query 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 Article

Index 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 Article


Difference between Create table Statements - topic by anandc

Hi All I want to understand if there will be a difference in performace or on any front between Any inputs will be of a great help. I am dealing with huge fact tables and many volatile tables to be...

View Article

Query 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 Article


Error 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 Article

Index 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 Article


Will 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 Article

Will 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 Article

Index 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 Article
Browsing all 14773 articles
Browse latest View live


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