You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "João Reis (Jira)" <ji...@apache.org> on 2025/01/17 13:50:00 UTC

[jira] [Commented] (CASSGO-22) Don't mutate Query/Batch

    [ https://issues.apache.org/jira/browse/CASSGO-22?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17914108#comment-17914108 ] 

João Reis commented on CASSGO-22:
---------------------------------

Hmm I agree that using Iter for batches could lead to API misuse... I'm still not super happy with the state of the API in [https://github.com/apache/cassandra-gocql-driver/pull/1848] but I'm struggling to find suggestions to improve it by just reviewing the code. I think I'll spend a couple of days prototyping to better understand what an "ideal" API would look like and if there is a way to achieve it without drastic changes.

> Don't mutate Query/Batch 
> -------------------------
>
>                 Key: CASSGO-22
>                 URL: https://issues.apache.org/jira/browse/CASSGO-22
>             Project: Apache Cassandra Go driver
>          Issue Type: Improvement
>          Components: Core
>            Reporter: João Reis
>            Assignee: Lukasz Antoniak
>            Priority: Normal
>             Fix For: 2.0.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> https://github.com/apache/cassandra-gocql-driver/issues/1447
> {quote}Currently queries are mutated while being executed, the query metrics and the consistency are both changed. Instead move query metrics to the Iter and remove the need to change the queries consistency for speculation.{quote}
> {quote}Also page state is mutated and the metrics are shared between multiple queries in a single iter (so attempt count is not accurate for queries) - #1508 and #1511 are related.{quote}



--
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