Few Suggestion hope it will help you:
1. Instead of using select* from table, use select column1, column2, column3.... from table 1.
2. Look for the opportunity to introduce index in the table you are querying.
3. Use Limit keyword if you are looking for any specific number of rows from the result set.