Problem with reading the data from the cassandra database

23 views
Skip to first unread message

Jvs KRISHNA - IIITK

unread,
Jun 30, 2023, 8:38:37 AM6/30/23
to gocql
Hi All,


I was using cassandra as database in my golang project. When i was using the Query function to retrive the data for the select query, it was taking more time, like 6 to 8 ms, is there any other way to fetch the data from db.

Here is how i am using Query function. please suggest me is any other good approch

Connections is the object of *gocql.Session
data,_ = connection.Query(query).Iter().SliceMap()
i also tried with the MapScan it also taking more time.


Reply all
Reply to author
Forward
0 new messages