You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Dmitry Konstantinov (Jira)" <ji...@apache.org> on 2025/11/22 12:39:00 UTC

[jira] [Created] (CASSANDRA-21040) Optimize ModificationStatement#requiresRead

Dmitry Konstantinov created CASSANDRA-21040:
-----------------------------------------------

             Summary: Optimize ModificationStatement#requiresRead 
                 Key: CASSANDRA-21040
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-21040
             Project: Apache Cassandra
          Issue Type: Improvement
          Components: CQL/Interpreter
            Reporter: Dmitry Konstantinov
         Attachments: image-2025-11-22-12-30-59-096.png

org.apache.cassandra.cql3.statements.ModificationStatement#requiresRead is calculated now every time, we can calculate it once and memorize the result.

It costs 1.5% of CPU for a simple batch insert test.

!image-2025-11-22-12-30-59-096.png|width=1000!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org