I have a table that I often do this type of where clause on queries:
where brand_id = 330516084
and influencer_id = 28995
and date_retrieved >= '2011-01-24'
and date_retrieved <= '2011-02-23'
my table has an id and 8 or so other fields, it is innodb
To make this query fast, should I create an index for brand_id and for influencer_id and for date_retrieved (1 index for each) or create 1 index with all 3 fields? Or something else?
thanks Joel