Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-1553

Optimize transaction prepare step when store is enabled

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • ignite-1.4
    • None
    • cache

    Description

      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):

      fut = tx.prepareAsync();
      
      db.write(tx.writes());
      
      fut.get();
      
      try {
          db.commit();
          
          tx.commit();
      }
      catch (Exception e) {
          tx.rollback();
      }
      

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

       

      store prepare works on primary nodes only

      Attachments

        Activity

          People

            Unassigned Unassigned
            agoncharuk Alexey Goncharuk
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: