dhimok Posted July 16, 2007 Share Posted July 16, 2007 Hello. I have this database where I get like thousand of searches every day. But I think it is running a bit slow. Do you have any tips on how to improve it and keeping it flow. Thanks a lot Quote Link to comment Share on other sites More sharing options...
infid3l Posted July 16, 2007 Share Posted July 16, 2007 If you only need to return X amount of results, always add this to the end of your SQL query: LIMIT x For example: SELECT username FROM user_db WHERE name='Ted' LIMIT 5 Quote Link to comment Share on other sites More sharing options...
ryeman98 Posted July 16, 2007 Share Posted July 16, 2007 If you only need to return X amount of results, always add this to the end of your SQL query: LIMIT x For example: SELECT username FROM user_db WHERE name='Ted' LIMIT 5 That will work good too. You may also want to look up Pagination to limit the amount of results per page. Good luck! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.