[
https://issues.apache.org/jira/browse/CASSANDRA-21589?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18106371#comment-18106371
]
Dmitry Konstantinov commented on CASSANDRA-21589:
-------------------------------------------------
Possible directions:
* reduce number of guardrail checks - not per statement or cell but once per
call
* improve performance of AuthenticatedUser.isSuper check (caching of the
status?)
> isOrdinaryUser check performed by Guardrail.enabled is expensive
> ----------------------------------------------------------------
>
> Key: CASSANDRA-21589
> URL: https://issues.apache.org/jira/browse/CASSANDRA-21589
> Project: Apache Cassandra
> Issue Type: Improvement
> Components: Feature/Guardrails
> Reporter: Dmitry Konstantinov
> Assignee: Dmitry Konstantinov
> Priority: Normal
> Attachments: cpu-heatmap_write.html, image-2026-08-20-16-05-55-487.png
>
>
> We can get like 18% of CPU overhead for this check for a write load if
> authorization is enabled
> [^cpu-heatmap_write.html]
> write test:
> https://issues.apache.org/jira/browse/CASSANDRA-18831?focusedCommentId=18056293&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-18056293
> Guardrails:
> org.apache.cassandra.cql3.RowUpdateBuilder#validateCell -
> columnValueSize/columnTextAndVarcharValueSize
> org.apache.cassandra.cql3.statements.ModificationStatement#validateDiskUsage
> !image-2026-08-20-16-05-55-487.png|width=600!
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]