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.
ODBCOutPut Data Export
-
- Site Admin
- Posts: 1458
- Joined: Wed May 28, 2008 9:09 am
Re: ODBCOutPut Data Export
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.
-
- 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
are you excuting odbcoutput for delete in matadata or data tab? it should be prolog or in epilog..
- 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
Has your DB table properly been indexed?
-
- 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
@ 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
I put it in to prolog and i am good now.
Thank You all
Dharav
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

I put it in to prolog and i am good now.
Thank You all
Dharav