Cassandra
  1. Cassandra
  2. CASSANDRA-4693

CQL Protocol should allow multiple PreparedStatements to be atomically executed

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Fix Version/s: 2.0 beta 1
    • Component/s: None
    • Labels:

      Description

      Currently the only way to insert multiple records on the same partition key, atomically and using PreparedStatements is to use a CQL BATCH command. Unfortunately when doing so the amount of records to be inserted must be known prior to prepare the statement which is rarely the case. Thus the only workaround if one want to keep atomicity is currently to use unprepared statements which send a bulk of CQL strings and is fairly inefficient.

      Therefore CQL Protocol should allow clients to send multiple PreparedStatements to be executed with similar guarantees and semantic as CQL BATCH command.

        Issue Links

          Activity

          Aleksey Yeschenko made changes -
          Component/s Core [ 12312978 ]
          Aleksey Yeschenko made changes -
          Link This issue is duplicated by CASSANDRA-5959 [ CASSANDRA-5959 ]
          Sylvain Lebresne made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Sylvain Lebresne made changes -
          Sylvain Lebresne made changes -
          Attachment 0001-Binary-protocol-adds-message-to-batch-prepared-or-not-.txt [ 12584255 ]
          Sylvain Lebresne made changes -
          Attachment 0001-Binary-protocol-adds-message-to-batch-prepared-or-not-.txt [ 12584255 ]
          Sylvain Lebresne made changes -
          Attachment 0001-Binary-protocol-adds-message-to-batch-prepared-or-not-.txt [ 12583489 ]
          Jonathan Ellis made changes -
          Reviewer iamaleksey
          Sylvain Lebresne made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Sylvain Lebresne made changes -
          Attachment 0001-Binary-protocol-adds-message-to-batch-prepared-or-not-.txt [ 12583489 ]
          Sylvain Lebresne made changes -
          Assignee Sylvain Lebresne [ slebresne ]
          Sylvain Lebresne made changes -
          Fix Version/s 2.0 [ 12322954 ]
          Gavin made changes -
          Workflow patch-available, re-open possible [ 12753434 ] reopen-resolved, no closed status, patch-avail, testing [ 12756278 ]
          Gavin made changes -
          Field Original Value New Value
          Workflow no-reopen-closed, patch-avail [ 12726292 ] patch-available, re-open possible [ 12753434 ]
          Michaël Figuière created issue -

            People

            • Assignee:
              Sylvain Lebresne
              Reporter:
              Michaël Figuière
              Reviewer:
              Aleksey Yeschenko
            • Votes:
              1 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development