You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1 - Right click on a counter table and generate the CQL to increment or decrement selected counter columns by an inputted number (see below for examples)
2 - Right click on counter table and generate CQL to reset ALL counters using the "Delete and Initialize" approach below.
Note: the reason we are only doing the reset ALL counter values as opposed to only resetting individual counter columns is if the user only wants to reset a specific counter value in a table with multiple counter columns its more complex. We will handle this later as another Right Click action.
We need to display a warning when resetting counter values:
⚠️ WARNING: Counter Reset Operation
Resetting counters in a multi-client environment carries risks:
- The reset operation is not atomic
- Other clients may increment/decrement the counter during reset
- The final counter value may be incorrect if concurrent updates occur
- Once reset, there is no way to recover the previous value
Are you sure you want to proceed with resetting this counter?
3 - Right click on a counter table and generate the CQL to initialise a counter or counters. Basically this is just an insert + or - 1 with the PK values (let the user choose the value and the + or -)
Note that counters have several important limitations:
Counter columns cannot be part of the primary key
All non-counter columns must be part of the primary key
Counters cannot be indexed
USING TIMESTAMP or USING TTL are not supported
Once deleted, counter values should not be reused
Counters cannot be set to a specific value directly
millerjp
changed the title
[feat]: Right Click on Counter Table - "Modify Counter Values" and another right click to "Reset All Counters Value"
[feat]: Right Click on Counter Table - "Generate Modify Counter Values statment" and another right click to "Generate Reset All Counters Values statement"
Jan 11, 2025
millerjp
changed the title
[feat]: Right Click on Counter Table - "Generate Modify Counter Values statment" and another right click to "Generate Reset All Counters Values statement"
[feat]: Right Click on Counter Table - "Generate Modify Counter Values statement" and another right click to "Generate Reset All Counters Values statement"
Jan 11, 2025
millerjp
changed the title
[feat]: Right Click on Counter Table - "Generate Modify Counter Values statement" and another right click to "Generate Reset All Counters Values statement"
[feat]: Right Click on Counter Table - "Modify Counter Values statement" and another right click to "Reset All Counters Values"
Jan 11, 2025
millerjp
changed the title
[feat]: Right Click on Counter Table - "Modify Counter Values statement" and another right click to "Reset All Counters Values"
[feat]: Right Click on Counter Table - "Modify Counters" and another right click to "Reset All Counters"
Jan 11, 2025
millerjp
changed the title
[feat]: Right Click on Counter Table - "Modify Counters" and another right click to "Reset All Counters"
[feat]: Right Click on Counter Table - "Update Counters" and another right click to "Reset All Counters"
Jan 11, 2025
millerjp
changed the title
[feat]: Right Click on Counter Table - "Update Counters" and another right click to "Reset All Counters"
[feat]: Right Click on Counter Table - "Update Counters", “Initialise Counter” and another right click to "Reset All Counters"
Jan 12, 2025
1 - Right click on a counter table and generate the CQL to increment or decrement selected counter columns by an inputted number (see below for examples)
2 - Right click on counter table and generate CQL to reset ALL counters using the "Delete and Initialize" approach below.
Note: the reason we are only doing the reset ALL counter values as opposed to only resetting individual counter columns is if the user only wants to reset a specific counter value in a table with multiple counter columns its more complex. We will handle this later as another Right Click action.
We need to display a warning when resetting counter values:
3 - Right click on a counter table and generate the CQL to initialise a counter or counters. Basically this is just an insert + or - 1 with the PK values (let the user choose the value and the + or -)
Note that counters have several important limitations:
Creating Counter Tables
Single Counter Table
Multiple Counters Table
Basic Counter Operations
Incrementing by 1
Incrementing by specific amount
Decrementing counters
Complex Counter Examples
Composite Primary Key with Counter
Resetting Counters
Method 1: Delete and Initialize
Method 2: Subtract Current Value
The text was updated successfully, but these errors were encountered: