Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-9041

Allow a PerRowSecondaryIndex to perform its index operation before the underlying data has been mutated

    XMLWordPrintableJSON

    Details

      Description

      The current PerRowSecondaryIndex receives its index event after the call to BTree.update. This means that it is impossible to write an index that eagerly removes stale index entries.

      It would be great to have some sort of preIndex method that gets called with the key and column family.

      In addition a postIndex method that is guaranteed to get called regardless if the actual BTree operation succeeds or not would allow cleanup in the event of error.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                samt Sam Tunnicliffe
                Reporter:
                bryncooke Bryn Cooke
                Authors:
                Sam Tunnicliffe
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: