Another tip if your database is doing the same queries a lot is to cache your pages and only re-run the queries when the content changes - that way you only perform one set of queries and generate static pages then re-generate the pages when a change is made to the database - It took me a long time to learn this, but it was one of the best things I have learned.
|