Home / Companies / DataStax / Blog / Post Details
Content Deep Dive

Is Running Count(*) Expensive on Cassandra?

Blog post from DataStax

Post Details
Company
Date Published
Author
Nikhil Karnik
Word Count
223
Company Posts That Month
16
Language
English
Hacker News Points
-
Post removed?
No
Summary

The `count(*)` function in Apache Cassandra returns the number of rows in a table, but it is expensive due to the full table scan required. This can be problematic as Cassandra tables are distributed across multiple nodes. There are alternative methods for counting rows that do not require running the `count(*)` function, such as using secondary indexes or executing queries with specific WHERE clauses. These alternatives can save resources and still provide accurate results. DataStax Academy offers courses to enhance Cassandra skills further.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.