3 ms·
Be static my friend.
by Copenjin 6y ago
Be static my friend.
- jermaustin1 6y agoOr if you are dynamic, profile your site to know how many queries are running, what queries actually NEED to run, and weed out anything that is not necessary for post. I have a blog written in my "micro" framework [1] that doesn't use any caching, and is hooked up to MongoDB, it has handled being #1 a few times without falling over, or even slowing down. The secret? 1 query per page that pulls all the relevant information into the view model. Also has a hidden benefit that I can count my pageviews by just looking at the number of queries against mongo for the day. 1: https://github.com/jeremyaboyd/simplemvcjs https://github.com/jeremyaboyd/simplemvcjs