I have the table(named users_events) consists of below columns
- date(date_time)
- eventid(autoincrement field) PRIMARY KEY
- two foreign keys
- two long text fields
- three integer fields and having the indexes on date_time column(btree) and two text fields(fulltext).
We have 14 million records in the table. When I try below query it's taking more than 30 seconds
select count(*) from users_events
please help me out to how to reduce query time..
*can be faster than using a specific column, as a specific column will invoke the index if one exists for it, like it would for an ID, this has been benchmarked numerous times