I have an ever growing table in MySQL Database. I need to perform a select operation which looks like:
$discountedBooks=
\App\Entities\Books::select('id','published_date','status','chargeable','author')
->whereRaw('DATE(published_date) = "'.$date.'"')
->whereStatus('Completed')
->whereChargeable(1);
I have assigned an index to books table
But when I explain the executed query, I don't see the index is being used. Any suggestions for how should i implement it?