You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by "Alexey Goncharuk (JIRA)" <ji...@apache.org> on 2015/09/26 01:59:04 UTC

[jira] [Created] (IGNITE-1553) Optimize transaction prepare step when store is enabled

Alexey Goncharuk created IGNITE-1553:
----------------------------------------

             Summary: Optimize transaction prepare step when store is enabled
                 Key: IGNITE-1553
                 URL: https://issues.apache.org/jira/browse/IGNITE-1553
             Project: Ignite
          Issue Type: Bug
          Components: cache
    Affects Versions: ignite-1.4
            Reporter: Alexey Goncharuk


Currently entries are enlisted in a database transaction after grid transaction is in PREPARED state. We can do this in parallel in the following fashion (pseudo-code):

{code}
fut = tx.prepareAsync();

db.write(tx.writes());

fut.get();

try {
    db.commit();
    
    tx.commit();
}
catch (Exception e) {
    tx.rollback();
}
{code}

If this approach is applied, we should be able to reduce latency for transactions when write-through is enabled.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)