TI process locking cube from reading
-
- Posts: 18
- Joined: Mon May 09, 2011 3:09 pm
- OLAP Product: TM1
- Version: 9.4
- Excel Version: EXCEL 2003
TI process locking cube from reading
hi,
One of our cube is getting locked whilst a BI process is running , not letting any user to refresh excel report and browse cube from perspective.
The TM1 top shows status as IX:<cube name against the process name.
I noticed that when I remove feeder statements but keep skipcheck only then it does not lock the cube. below are the complete rule and feeder statement. Do you notice anything wrong here? can it be further optimised?
skipcheck;
['Actual PY']=N:DB('PSP',!PSP Provider,!Domain,'Actual',ATTRS('Time',!Time,'PY'),!PSP Accounts,!Measure PSP);
['Actual PY-1']=N:DB('PSP',!PSP Provider,!Domain,'Actual',ATTRS('Time',!Time,'PY-1'),!PSP Accounts,!Measure PSP);
['Actual to Current Period']=N:IF(ATTRN('Time',!Time,'IndexNumber')<=ATTRN('Time',DB('zSystem Control','Current Month','sValue'),'IndexNumber'),
['Actual'],STET);
[{'Actual PY','Actual PY-1','Actual to Current Period'}]=N:STET;
FEEDERS;
['Actual'] => DB('PSP',!PSP Provider,!Domain,'Actual PY',ATTRS('Time',!Time,'NY'),!PSP Accounts,!Measure PSP);
['Actual'] => DB('PSP',!PSP Provider,!Domain,'Actual PY-1',ATTRS('Time',!Time,'NY+1'),!PSP Accounts,!Measure PSP);
['Actual'] => DB(IF(ATTRN('Time',!Time,'IndexNumber')<=ATTRN('Time',DB('zSystem Control','Current Month','sValue'),'IndexNumber'),'PSP',''),!PSP Provider,!Domain,'Actual to Current Period',!Time,!PSP Accounts,!Measure PSP);
One of our cube is getting locked whilst a BI process is running , not letting any user to refresh excel report and browse cube from perspective.
The TM1 top shows status as IX:<cube name against the process name.
I noticed that when I remove feeder statements but keep skipcheck only then it does not lock the cube. below are the complete rule and feeder statement. Do you notice anything wrong here? can it be further optimised?
skipcheck;
['Actual PY']=N:DB('PSP',!PSP Provider,!Domain,'Actual',ATTRS('Time',!Time,'PY'),!PSP Accounts,!Measure PSP);
['Actual PY-1']=N:DB('PSP',!PSP Provider,!Domain,'Actual',ATTRS('Time',!Time,'PY-1'),!PSP Accounts,!Measure PSP);
['Actual to Current Period']=N:IF(ATTRN('Time',!Time,'IndexNumber')<=ATTRN('Time',DB('zSystem Control','Current Month','sValue'),'IndexNumber'),
['Actual'],STET);
[{'Actual PY','Actual PY-1','Actual to Current Period'}]=N:STET;
FEEDERS;
['Actual'] => DB('PSP',!PSP Provider,!Domain,'Actual PY',ATTRS('Time',!Time,'NY'),!PSP Accounts,!Measure PSP);
['Actual'] => DB('PSP',!PSP Provider,!Domain,'Actual PY-1',ATTRS('Time',!Time,'NY+1'),!PSP Accounts,!Measure PSP);
['Actual'] => DB(IF(ATTRN('Time',!Time,'IndexNumber')<=ATTRN('Time',DB('zSystem Control','Current Month','sValue'),'IndexNumber'),'PSP',''),!PSP Provider,!Domain,'Actual to Current Period',!Time,!PSP Accounts,!Measure PSP);
-
- MVP
- Posts: 2836
- Joined: Tue Feb 16, 2010 2:39 pm
- OLAP Product: TM1, Palo
- Version: Beginning of time thru 10.2
- Excel Version: 2003-2007-2010-2013
- Location: Atlanta, GA
- Contact:
Re: TI process locking cube from reading
That's a pretty broad statement. Just what exactly is this "BI Process" doing? Sounds like you need to look here instead of your rules, which IMO look reasonable.kpradeep25 wrote:whilst a BI process is running
-
- Posts: 18
- Joined: Mon May 09, 2011 3:09 pm
- OLAP Product: TM1
- Version: 9.4
- Excel Version: EXCEL 2003
Re: TI process locking cube from reading
Sorry it's TI process;TI process is basically loading data from data warehouse, It also add new dimension element to two dimensions. But not sure why only these two cubes are being affected as the same dimension ( which are being modified) is used in other cubes as well?tomok wrote:That's a pretty broad statement. Just what exactly is this "BI Process" doing? Sounds like you need to look here instead of your rules, which IMO look reasonable.kpradeep25 wrote:whilst a BI process is running
-
- Community Contributor
- Posts: 349
- Joined: Tue Aug 17, 2010 6:31 am
- OLAP Product: Planning Analytics
- Version: 2.0.5
- Excel Version: 2016
Re: TI process locking cube from reading
Updating metadata will cause locking. Are you positive that your other cubes aren't affected? Any object related to the dimension you are updating should be locked untill you complete the update.
-
- MVP
- Posts: 2836
- Joined: Tue Feb 16, 2010 2:39 pm
- OLAP Product: TM1, Palo
- Version: Beginning of time thru 10.2
- Excel Version: 2003-2007-2010-2013
- Location: Atlanta, GA
- Contact:
Re: TI process locking cube from reading
So, you are loading data into a cube and users are trying to read from the same cube while this is happening? That's not going to work unless you are on 9.5.2 or higher and have parallel interaction enabled.kpradeep25 wrote:Sorry it's TI process;TI process is basically loading data from data warehouse, It also add new dimension element to two dimensions. But not sure why only these two cubes are being affected as the same dimension ( which are being modified) is used in other cubes as well?
-
- Community Contributor
- Posts: 349
- Joined: Tue Aug 17, 2010 6:31 am
- OLAP Product: Planning Analytics
- Version: 2.0.5
- Excel Version: 2016
Re: TI process locking cube from reading
Even with parallel interaction, if you are running metadata updates as part of the data update then your cubes will get locked while the process is running.
-
- Community Contributor
- Posts: 341
- Joined: Wed Nov 03, 2010 9:16 pm
- OLAP Product: tm1
- Version: 10 2 2 - 2.0.5
- Excel Version: From 2007 to 2013
- Location: Earth
Re: TI process locking cube from reading
I was wondering which of the following events fall into this category as they are quite commonly used in the Prolog tab even if you do not manipulate dimension structures; I have never had the patience to test it one by one:if you are running metadata updates
SubsetDestroy, SubsetCreate, SubsetCreateByMDX
SubsetDeleteAllElements, SubsetElementInsert
ViewDestroy, ViewCreate
ViewSubsetAssign, ViewExtractSkip...
-
- Community Contributor
- Posts: 103
- Joined: Mon Sep 05, 2011 11:04 pm
- OLAP Product: TM1
- Version: 10.2
- Excel Version: 2010
Re: TI process locking cube from reading
I'm sure someone will correct me if I'm wrong on this, but I believe that SubsetDestroy, SubsetCreate, SubsetCreateByMDX, ViewDestroy, ViewCreate will cause a system wide lock for the duration of the TI (even if they are in the prologue). This is because they are creating or destroying objects. IBM actually recommend not using these functions if possible in TIs if locking is likely to be an issue in systems. Instead, it's better to just manipulate an existing subset. You can see this if you try to manipulate a subset in a sub-process which you created in a parent process.mvaspal wrote: I was wondering which of the following events fall into this category as they are quite commonly used in the Prolog tab even if you do not manipulate dimension structures; I have never had the patience to test it one by one:
SubsetDestroy, SubsetCreate, SubsetCreateByMDX
SubsetDeleteAllElements, SubsetElementInsert
ViewDestroy, ViewCreate
ViewSubsetAssign, ViewExtractSkip...
SubsetDeleteAllElements, SubsetElementInsert will lock only dependent objects - ie cubes (and dependent cubes) which use the dimensions they are associated with.
I would imagine that the ViewSubsetAssign and ViewExtractSkip would lock the cube and dependent objects, although I'm not 100% on this one.
-
- Community Contributor
- Posts: 349
- Joined: Tue Aug 17, 2010 6:31 am
- OLAP Product: Planning Analytics
- Version: 2.0.5
- Excel Version: 2016
Re: TI process locking cube from reading
kpradeep25 wrote:Sorry it's TI process;TI process is basically loading data from data warehouse, It also add new dimension element to two dimensions. But not sure why only these two cubes are being affected as the same dimension ( which are being modified) is used in other cubes as well?tomok wrote:That's a pretty broad statement. Just what exactly is this "BI Process" doing? Sounds like you need to look here instead of your rules, which IMO look reasonable.kpradeep25 wrote:whilst a BI process is running
I wasn't aware that editing subsets in a TI would cause locking although I can see where it's possible. I was speaking more to this statement which says you are add new elements to two dimensions. If you have DimensionElementInsert anywhere in your TI then you are for sure going to have locking.
-
- Posts: 18
- Joined: Mon May 09, 2011 3:09 pm
- OLAP Product: TM1
- Version: 9.4
- Excel Version: EXCEL 2003
Re: TI process locking cube from reading
Apologies for the delay.
I am using 9.5.2 with Parallel Interaction ON. I also run viewcontruct and add dependecncy before the process run. But still, only these two cubes gets locked from read operation. The processes are run from TM1 chore.
I am not sure if TM1 is effective in real-time environment. if yes, what is the best way to minimize locking issue?
I am using 9.5.2 with Parallel Interaction ON. I also run viewcontruct and add dependecncy before the process run. But still, only these two cubes gets locked from read operation. The processes are run from TM1 chore.
I am not sure if TM1 is effective in real-time environment. if yes, what is the best way to minimize locking issue?
-
- Community Contributor
- Posts: 103
- Joined: Mon Sep 05, 2011 11:04 pm
- OLAP Product: TM1
- Version: 10.2
- Excel Version: 2010
Re: TI process locking cube from reading
Hi,
In your case, there's a couple of options I'd suggest to minimize the locking:
1. Put the metadata updates in a separate TI in a separate chore. Make sure the metadata chore runs before the dataload chore. You'll still get locking, but it will be for much shorter as it won't hold the lock for the duration of the data load as well.
2. If this is still too much, due to size of data source or logic involved in creating the elements or otherwise, then have your metadata TI build a dummy dimension which is not part of any cube, then run a separate TI which updates the main dimension from the dummy dimension. Again, you'd have to control the order of execution of these chores to ensure that they run in the correct sequence. If it's only a couple of elements you're adding, then this should be fast enough so that the locking isn't an issue.
In your case, there's a couple of options I'd suggest to minimize the locking:
1. Put the metadata updates in a separate TI in a separate chore. Make sure the metadata chore runs before the dataload chore. You'll still get locking, but it will be for much shorter as it won't hold the lock for the duration of the data load as well.
2. If this is still too much, due to size of data source or logic involved in creating the elements or otherwise, then have your metadata TI build a dummy dimension which is not part of any cube, then run a separate TI which updates the main dimension from the dummy dimension. Again, you'd have to control the order of execution of these chores to ensure that they run in the correct sequence. If it's only a couple of elements you're adding, then this should be fast enough so that the locking isn't an issue.
-
- Community Contributor
- Posts: 341
- Joined: Wed Nov 03, 2010 9:16 pm
- OLAP Product: tm1
- Version: 10 2 2 - 2.0.5
- Excel Version: From 2007 to 2013
- Location: Earth
Re: TI process locking cube from reading
Hi Joe,
I was just testing this with 10.1.1 FP1 and it was better than I expected: I put SubsetDeletAllElements and SubsetElementInsert in the Prolog of a TI and then a long WHILE so that I can monitor it in Top. Then I ran another TI with SubsetDeleteAllElements and SubsetElementInsert on the same dimension but for different subset and it worked well. It seems that IX locks were put only to the subsets but not the whole dimension.SubsetDeleteAllElements, SubsetElementInsert will lock only dependent objects - ie cubes (and dependent cubes) which use the dimensions they are associated with.
-
- Community Contributor
- Posts: 103
- Joined: Mon Sep 05, 2011 11:04 pm
- OLAP Product: TM1
- Version: 10.2
- Excel Version: 2010
Re: TI process locking cube from reading
That's interesting and good to know.mvaspal wrote:Hi Joe,
I was just testing this with 10.1.1 FP1 and it was better than I expected: I put SubsetDeletAllElements and SubsetElementInsert in the Prolog of a TI and then a long WHILE so that I can monitor it in Top. Then I ran another TI with SubsetDeleteAllElements and SubsetElementInsert on the same dimension but for different subset and it worked well. It seems that IX locks were put only to the subsets but not the whole dimension.SubsetDeleteAllElements, SubsetElementInsert will lock only dependent objects - ie cubes (and dependent cubes) which use the dimensions they are associated with.
Did you try it with ParallelInteraction enabled vs disabled? I'd be interested to know if it's something to do with it.
-
- Community Contributor
- Posts: 341
- Joined: Wed Nov 03, 2010 9:16 pm
- OLAP Product: tm1
- Version: 10 2 2 - 2.0.5
- Excel Version: From 2007 to 2013
- Location: Earth
Re: TI process locking cube from reading
I tried only with PI on
- Steve Rowe
- Site Admin
- Posts: 2456
- Joined: Wed May 14, 2008 4:25 pm
- OLAP Product: TM1
- Version: TM1 v6,v7,v8,v9,v10,v11+PAW
- Excel Version: Nearly all of them
Re: TI process locking cube from reading
With PI on lock are triggered by changing dimensions. This includes structure / elements and the bit that gets missed, attributes. (Not sure if it is all attributes or just alias, untested)
I'm not aware of anything else that triggers locks, certainly all the standard data load stuff like building views and subsets doesn't impact.
Cheers,
I'm not aware of anything else that triggers locks, certainly all the standard data load stuff like building views and subsets doesn't impact.
Cheers,
Technical Director
www.infocat.co.uk
www.infocat.co.uk
-
- Posts: 20
- Joined: Wed Feb 23, 2011 6:43 pm
- OLAP Product: TM1
- Version: Latest
- Excel Version: 2013
Re: TI process locking cube from reading
Steve Rowe wrote:With PI on lock are triggered by changing dimensions. This includes structure / elements and the bit that gets missed, attributes. (Not sure if it is all attributes or just alias, untested)
I'm not aware of anything else that triggers locks, certainly all the standard data load stuff like building views and subsets doesn't impact.
Cheers,
Creating views, no. Creating subsets will cause locks.
-
- Community Contributor
- Posts: 341
- Joined: Wed Nov 03, 2010 9:16 pm
- OLAP Product: tm1
- Version: 10 2 2 - 2.0.5
- Excel Version: From 2007 to 2013
- Location: Earth
Re: TI process locking cube from reading
Hi
Then in the Prolog of another TI, ViewDestroy and ViewCreate on the same cube but different view name. The lock is there, the second TI waits with IXC.
I tried it now with ViewDestroy - ViewCreate - ViewSubsetAssign lines in the Prolog, then the long WHILE in the first TI.Creating views, no. Creating subsets will cause locks.
Then in the Prolog of another TI, ViewDestroy and ViewCreate on the same cube but different view name. The lock is there, the second TI waits with IXC.