SingleCommit with MultipleCommit

Post Reply
Niko
Posts: 55
Joined: Tue Feb 15, 2022 6:43 am
OLAP Product: IBM Cognos TM1
Version: PA 2.09 / TM1 11.7.00000.42
Excel Version: EXCEL 2019
Location: Asia

SingleCommit with MultipleCommit

Post by Niko »

Anyone know what is the difference between SingleCommit with MultipleCommit When i set a chore task? :D
Wim Gielis
MVP
Posts: 3222
Joined: Mon Dec 29, 2008 6:26 pm
OLAP Product: TM1, Jedox
Version: PAL 2.1.5
Excel Version: Microsoft 365
Location: Brussels, Belgium
Contact:

Re: SingleCommit with MultipleCommit

Post by Wim Gielis »

The difference is a commit step after each of the TIs, or only 1 commit after all TIs are finished.
Best regards,

Wim Gielis

IBM Champion 2024-2025
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
Alan Kirk
Site Admin
Posts: 6643
Joined: Sun May 11, 2008 2:30 am
OLAP Product: TM1
Version: PA2.0.9.18 Classic NO PAW!
Excel Version: 2013 and Office 365
Location: Sydney, Australia
Contact:

Re: SingleCommit with MultipleCommit

Post by Alan Kirk »

Wim Gielis wrote: Sun Sep 29, 2024 6:03 pm The difference is a commit step after each of the TIs, or only 1 commit after all TIs are finished.
With one potential "gotcha" proviso; it only applies to TI processes which are called from the chore itself. If you have to call (say) an upload process a variable number of times, and therefore use a loop to run a series of ExecuteProcess() functions, the commit will not happen until after the master process that makes the calls has finished, regardless of whether single or multi commit is chosen.
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
Niko
Posts: 55
Joined: Tue Feb 15, 2022 6:43 am
OLAP Product: IBM Cognos TM1
Version: PA 2.09 / TM1 11.7.00000.42
Excel Version: EXCEL 2019
Location: Asia

Re: SingleCommit with MultipleCommit

Post by Niko »

Alan Kirk wrote: Sun Sep 29, 2024 6:43 pm
Wim Gielis wrote: Sun Sep 29, 2024 6:03 pm The difference is a commit step after each of the TIs, or only 1 commit after all TIs are finished.
With one potential "gotcha" proviso; it only applies to TI processes which are called from the chore itself. If you have to call (say) an upload process a variable number of times, and therefore use a loop to run a series of ExecuteProcess() functions, the commit will not happen until after the master process that makes the calls has finished, regardless of whether single or multi commit is chosen.
thanks for your reply~
Now suppose i created a chore called "Chore A", this chore calls two processes, the first process is called P1, another is P2,
P1 Transfer data from a csv file to CUBE A, P2 Transfer data from CUBE A to CUBE B
Is there a difference between singlecommit and multiplecommit in this situation? :)
declanr
MVP
Posts: 1827
Joined: Mon Dec 05, 2011 11:51 am
OLAP Product: Cognos TM1
Version: PA2.0 and most of the old ones
Excel Version: All of em
Location: Manchester, United Kingdom
Contact:

Re: SingleCommit with MultipleCommit

Post by declanr »

Niko wrote: Mon Sep 30, 2024 2:08 am
Alan Kirk wrote: Sun Sep 29, 2024 6:43 pm
Wim Gielis wrote: Sun Sep 29, 2024 6:03 pm The difference is a commit step after each of the TIs, or only 1 commit after all TIs are finished.
With one potential "gotcha" proviso; it only applies to TI processes which are called from the chore itself. If you have to call (say) an upload process a variable number of times, and therefore use a loop to run a series of ExecuteProcess() functions, the commit will not happen until after the master process that makes the calls has finished, regardless of whether single or multi commit is chosen.
thanks for your reply~
Now suppose i created a chore called "Chore A", this chore calls two processes, the first process is called P1, another is P2,
P1 Transfer data from a csv file to CUBE A, P2 Transfer data from CUBE A to CUBE B
Is there a difference between singlecommit and multiplecommit in this situation? :)
In a multi commit scenario the data loaded to Cube A is available to everyone immediately when P1 is finished. So if a user queries Cube A while P2 is still running they can see the data and not hold up P2.
In single commit mode; the chore will hold a lock on Cube A so the user won’t be able to see the cube data results until the whole chore finishes. (This is assuming the user tries to read data after P1 is finished but before P2 finishes.)
Declan Rodger
Niko
Posts: 55
Joined: Tue Feb 15, 2022 6:43 am
OLAP Product: IBM Cognos TM1
Version: PA 2.09 / TM1 11.7.00000.42
Excel Version: EXCEL 2019
Location: Asia

Re: SingleCommit with MultipleCommit

Post by Niko »

declanr wrote: Mon Sep 30, 2024 6:49 am
Niko wrote: Mon Sep 30, 2024 2:08 am
Alan Kirk wrote: Sun Sep 29, 2024 6:43 pm

With one potential "gotcha" proviso; it only applies to TI processes which are called from the chore itself. If you have to call (say) an upload process a variable number of times, and therefore use a loop to run a series of ExecuteProcess() functions, the commit will not happen until after the master process that makes the calls has finished, regardless of whether single or multi commit is chosen.
thanks for your reply~
Now suppose i created a chore called "Chore A", this chore calls two processes, the first process is called P1, another is P2,
P1 Transfer data from a csv file to CUBE A, P2 Transfer data from CUBE A to CUBE B
Is there a difference between singlecommit and multiplecommit in this situation? :)
In a multi commit scenario the data loaded to Cube A is available to everyone immediately when P1 is finished. So if a user queries Cube A while P2 is still running they can see the data and not hold up P2.
In single commit mode; the chore will hold a lock on Cube A so the user won’t be able to see the cube data results until the whole chore finishes. (This is assuming the user tries to read data after P1 is finished but before P2 finishes.)
i understand , thank u. :D
Post Reply