[
https://issues.apache.org/jira/browse/CASSANDRA-10273?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15344182#comment-15344182
]
Alex Petrov commented on CASSANDRA-10273:
-----------------------------------------
There were many places where cache was recently added:
[here|https://github.com/apache/cassandra/commit/063e91754b22a28a43efccb0c238c577a6bd0b8a]
and
[here|https://github.com/apache/cassandra/commit/1e92ce43a5a730f81d3f6cfd72e7f4b126db788a]
for example. If you know more instances where that could be done (like
{{Directories}}, that might be helpful). You can try it out and check if it
yields the desired result.
> Reduce number of data directory scans during startup
> ----------------------------------------------------
>
> Key: CASSANDRA-10273
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10273
> Project: Cassandra
> Issue Type: Improvement
> Reporter: Robert Stupp
> Assignee: Giampaolo
> Priority: Minor
> Labels: lhf
>
> ATM we scan each data directory four times. We could easily reduce that to at
> least two, maybe to one.
> # pre-flight (startup tests) scrub
> # pre-flight (startup tests) sstable min version
> # {{ColumnFamilyStore.createColumnFamilyStore}}
> # {{ColumnFamilyStore.<init>}} (if {{loadSSTables==true}})
> First two pre-flight tests could be combined to one and 3+4 could also be
> combined, as both appear at pretty related code paths.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)