cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benedict (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-6941) Optimized CF.hasColumns() implementation
Date Thu, 27 Mar 2014 16:31:17 GMT

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

Benedict commented on CASSANDRA-6941:
-------------------------------------

+1

> Optimized CF.hasColumns() implementation
> ----------------------------------------
>
>                 Key: CASSANDRA-6941
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-6941
>             Project: Cassandra
>          Issue Type: Improvement
>            Reporter: Benedict
>            Assignee: Aleksey Yeschenko
>            Priority: Minor
>             Fix For: 2.1 beta3
>
>         Attachments: 6941.txt
>
>
> Half the time we call ColumnFamily#getColumnCount() we do it to compare the result to
0. For both AtomicBTreeColumns and ArrayBackedSortedColumns we can implement optimized hasColumns()
method, that would avoid some overhead for the former and pre-sorting for the latter.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message