ODBCOutPut Data Export

Post Reply
dharav
Regular Participant
Posts: 193
Joined: Wed Apr 02, 2014 6:43 pm
OLAP Product: TM1
Version: 10.2
Excel Version: 2010

ODBCOutPut Data Export

Post by dharav »

Hello All

I was trying to delete 55000 rows from the relational table from existing ODBC output TI process. Inserting Data activity is fast as it should be in TM1 but deleting rows is too slow. The code for delete rows are as under:

vSql='Delete From [M1].[dbo].[Report]
Where Month=''%v2%'' and Year=''%v1%''';


ODBCOutput('production',Expand(vSql));

Is there a way to execute above code faster from ODBC output TI itself instead of following way ?

=> Alternate Way i approached:
I did achieve it through batch file where other TM1runTIs are integrated. It is fast also.
David Usherwood
Site Admin
Posts: 1458
Joined: Wed May 28, 2008 9:09 am

Re: ODBCOutPut Data Export

Post by David Usherwood »

How many times are you executing the SQL? Are you using a data source within TM1? I can't see why a single DELETE ... WHERE would be slow.
escape18in
Posts: 26
Joined: Tue Feb 03, 2015 10:22 am
OLAP Product: IBM Cognos BI
Version: 10.2
Excel Version: Excel 2010

Re: ODBCOutPut Data Export

Post by escape18in »

are you excuting odbcoutput for delete in matadata or data tab? it should be prolog or in epilog..
User avatar
macsir
MVP
Posts: 785
Joined: Wed May 30, 2012 6:50 am
OLAP Product: TM1
Version: PAL 2.0.9
Excel Version: Office 365
Contact:

Re: ODBCOutPut Data Export

Post by macsir »

Has your DB table properly been indexed?
In TM1,the answer is always yes though sometimes with a but....
http://tm1sir.blogspot.com.au/
dharav
Regular Participant
Posts: 193
Joined: Wed Apr 02, 2014 6:43 pm
OLAP Product: TM1
Version: 10.2
Excel Version: 2010

Re: ODBCOutPut Data Export

Post by dharav »

@ escape18in

You were right. I wrote sql statement to delete rows in prolog but the odbc function to execute that sql query was in data tab :o

I put it in to prolog and i am good now.

Thank You all

Dharav
Post Reply