New drastic code optimisations
27 Aug 2004, 15:52Hey all!
I just wanted to report you my brilliant success in further forum code optimisations. It's 23:45 here but I am working, working!
Here we go.
Forum home page: we used to have 2 database queries per forum section, which resulted in 16x2=32 queries (16 sections by two queries). Now, we have only 2 smart queries in total, for all forums. Voila, the home page should now be generated at least 5 times faster (15 times theoretically).
Last 15/30 posts, forum section view: we used to have a global query, plus 2 queries per thread, which resulted in 61 queries in case of 30 threads to display. You guessed, we have only two veeeery smart queries in any case, and the generation speed should increase 10 times at least (30 times theoretically).
Oh, I feel sooooo good
Anyway, please report if my midnight hacking caused any bugs
Artemio.
I just wanted to report you my brilliant success in further forum code optimisations. It's 23:45 here but I am working, working!
Here we go.
Forum home page: we used to have 2 database queries per forum section, which resulted in 16x2=32 queries (16 sections by two queries). Now, we have only 2 smart queries in total, for all forums. Voila, the home page should now be generated at least 5 times faster (15 times theoretically).
Last 15/30 posts, forum section view: we used to have a global query, plus 2 queries per thread, which resulted in 61 queries in case of 30 threads to display. You guessed, we have only two veeeery smart queries in any case, and the generation speed should increase 10 times at least (30 times theoretically).
Oh, I feel sooooo good
Anyway, please report if my midnight hacking caused any bugs
Artemio.