Rephrasing mail to avoid confusion. So one cannot use executor service or multi threading to update ignite cache inside ignite transaction.
If this is the case then how do I see/get latest updated values from cache in other threads which were updated in in a thread from which the transaction was started? Is there any plan to support this feature? If yes, which release? Is there any other way to speed up the process? Because I have to process multiple asset groups (more than 1000) inside single transaction. if I do it in single thread in sequential manner , my processing will become slow. I think I have simple way to solve my current problem. Use multithreading just for data processing. These threads will receive the data( data from cache ) to be processed from a thread from which transaction was started. Each thread will process the data and will return the updated data or result to the thread who initiated transaction as a callable task's return value. Then the thread which intiated transaction will do the cache updates. Thanks, Prasad On Thu, Jun 7, 2018, 6:20 AM Prasad Bhalerao <[email protected]> wrote: > Hi, > > So one cannot use executor service or multi threading inside ignite > transaction. > > Is there any plan to support this feature? > If yes, which release? > > Is there any other way to speed up the process? > > Because I have to process multiple asset groups (more than 1000) inside > single transaction. if I do it in single thread in sequential manner , my > processing will become slow. > > > Thank, > Prasad > > On Thu, Jun 7, 2018, 2:08 AM vkulichenko <[email protected]> > wrote: > >> Prasad, >> >> Transaction is always attached to a single thread. If you do txStart in >> one >> thread, and then a cache operation in any other thread, this operation >> will >> not be enlisted. >> >> -Val >> >> >> >> -- >> Sent from: http://apache-ignite-users.70518.x6.nabble.com/ >> >
