例如,每天往一张表写1000W条记录,记录的ttl设置为1个月, 1个月后每天产生1000w个墓碑, 此时对这张表的读写性能是否有影响?
例如,每天往一张表写1000W条记录,记录的ttl设置为1个月, 1个月后每天产生1000w个墓碑, 此时对这张表的读写性能是否有影响?
这取决于上面有TTL的数据。 如果将TTL应用于整个partition,则tombstones不是问题。
如果要在clustering columns上应用TTL,则如果要遍历过期的行以获取live数据,则可能会出现问题。
我们将需要查看表的schema和带有TTL的查询,以便我们确定是否会出现问题。
6 People are following this question.
DataStax Enterprise is powered by the best distribution of Apache Cassandra ™
© 2023 DataStax, Titan, and TitanDB are registered trademarks of DataStax, Inc. and its subsidiaries in the United States and/or other countries.
Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries.
Privacy Policy Terms of Use