I wanted write a simple program in golang (prefer GoCql) to count the number of records in a Cassandra table. so I can reduce the amount of load on db at a time and reduce the probability of timeouts. I just wanted to count the number of elements with where clause.
Please suggest the answers in brief if possible, I'm a complete newbie. It will help me a lot.
Like a query of count number of order of a user with a given userId
Select * from KeySpace.OrderTable where userid = userId