Prestadget Posted January 19, 2014 Share Posted January 19, 2014 I can see query like this : SELECT `id_connections` FROM `ps_connections` WHERE ip_address = 1123634193 AND DATE_ADD(`date_add`, INTERVAL 30 MINUTE) > '2014-01-19 18:11:00' AND id_shop IN (1) ORDER BY `date_add` DESC LIMIT 1 I have 1 shop, so I guess its useless to append "AND id_shop IN(1)" all the time (I mean to improve my mysql performance a bit)? (Also index is missing for the column ps_connections.ip_address, and ip_address should be a UNSIGNED INT. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now