Hi
I have a mysql query which seems to execute slowly.
I was wondering if there was a way to speed it up a bit.
the query is;
this table has a primary key called 'email_id'
so I was wondering if
would execute faster, but it still seems to be roughly the same amount of time.
I have about 1 million records in this table, and the query takes about 2 seconds to execute. I would like to reduce this time as much as possible, as i have a few other queries that get executed later on in my coding. therefore the overall speed will seems even slower.
thanks in advance
I have a mysql query which seems to execute slowly.
I was wondering if there was a way to speed it up a bit.
the query is;
Code:
select count(*) as emailCount from mailing_list where user like 'joel@bloggs.com' and list_id = '47'
so I was wondering if
Code:
select count(email_id) as emailCount from mailing_list where user like 'joel@bloggs.com' and list_id = '47'
I have about 1 million records in this table, and the query takes about 2 seconds to execute. I would like to reduce this time as much as possible, as i have a few other queries that get executed later on in my coding. therefore the overall speed will seems even slower.
thanks in advance
Comment