Yes write better queries against a database with a better design might be the answer, but you should probably consider updating this question with an example of the query he is spending excessive time in the preparing state so we get some idea of what you are dealing with.