Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-5210

Support writing multiple modifications to cache stores in batch when using Transactions

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • 9.0.0.Alpha4
    • 6.0.2.Final, 7.1.0.Final
    • Loaders and Stores
    • None

    Description

      Currently writes to a cache store are performed individually for each modification to the cache.

      While this makes sense when using a non-tx cache it would be beneficial to support writing multiple modifications to a cache store in a single call when using a Tx cache.

      Currently all writes are performed in the commit phase and are done by looping through the modifications in the Tx and writing each one in turn to the the store.

      Instead of doing this it would useful to pass all modifications to the store in a single call, this would allow:

      a) Taking advantage of support for batch updates in underlying stores (JDBC, MongoDB, DynamoDB) for a more efficient write through.

      b) Allow store implementations the chance to clean up if one or more updates in the batch fail (this is especially useful if the store does not support Tx and rollbacks as it means the store implementation can at least try to clean up any partial updates it has performed, something which is not currently possible).

      Attachments

        Issue Links

          Activity

            People

              remerson@redhat.com Ryan Emerson
              ma6rl_jira Richard Lucas (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: