Dmitry Konstantinov created CASSANDRA-21374:
-----------------------------------------------

             Summary: Introduce Chunk list in ResultSet to avoid full copy for 
a large select result
                 Key: CASSANDRA-21374
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-21374
             Project: Apache Cassandra
          Issue Type: Improvement
          Components: CQL/Interpreter
            Reporter: Dmitry Konstantinov
            Assignee: Dmitry Konstantinov


If we have a large result set (like a full page in 5k rows) then when we 
populate org.apache.cassandra.cql3.ResultSet#rows from an iterator we have to 
copy the values again and again when we extend the list.

It is tricky to get the result size in advance.

As an option, instead of ArrayList we can use a custom data structure - chunked 
array list, when we append fixed size chunks when we fill it with elements.

 



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to