ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vladislav Pyatkov <vldpyat...@gmail.com>
Subject Re: Transaction tx = ignite.transactions().txStart() and tx.commit()
Date Fri, 09 Sep 2016 09:52:30 GMT
Hi,

You are executing operation without transaction on transactional cache. In
that case transaction was created implicitly on each operation.

Transaction is needed if you need to execute several operation as one.

On Fri, Sep 9, 2016 at 12:35 PM, seyeony <seyeonyoon@gmail.com> wrote:

> Hi,
> During the persistent store test (CacheAutoStoreExample.java from
> examples),
> I removed (commented out) the Transaction statemements as follows:
> //                try (Transaction tx = ignite.transactions().txStart()) {
>                   ...
>                   ...
> //                    tx.commit();
> //                }
>
> I found the result is same as before (code with Transaction commit()).
>
> Does the Transaction statemements not need, if Read-Through and
> Write-Through are set as true in the CacheConfiguration as follows?
>         cfg.setReadThrough(true);
>         cfg.setWriteThrough(true);
> -SY
>
>
>
> --
> View this message in context: http://apache-ignite-users.
> 70518.x6.nabble.com/Transaction-tx-ignite-transactions-txStart-and-tx-
> commit-tp7628.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>



-- 
Vladislav Pyatkov

Mime
View raw message