Reputation: 153
i am using cassandra and using ttl (time to live) in queries for auto delete rows. My question is that, is TTL affect performance?
Upvotes: 0
Views: 364
Reputation: 1463
Generally use of a TTL
makes little to no difference in the performance (i.e. response time) of CQL queries.
It is worth nothing, however, that use of the optional TTL
value when inserting or updating a record requires additional storage than the same record without a TTL
. This can become relevant if/when you are creating many records with long TTL periods.
You can learn more about estimating the size of records stored in Cassandra here:
Upvotes: 1
Reputation: 2283
No, it doesn't affect the performance in a measurable way.
Upvotes: 1