Roland Clan site and forum

New drastic code optimisations

New drastic code optimisations

27 Aug 2004, 15:52
Hey 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.

Re: New drastic code optimisations

27 Aug 2004, 18:34
Artemio, I've noticed the loading times are greatly improved and I'm very glad to see this, I was getting frustrated o_O ;)

Webdesign & personal site: http://www.phait-accompli.com
My music: http://www.thecarbonflaw.com
Roland Fantom-S, Apple Powerbook G4 15", Logic Audio 6

"he who knows others is wise; he who knows himself is enlightened." -Lao-Tzu

Re: New drastic code optimisations

28 Aug 2004, 02:30
Thanks a lot, guys, I am very glad I made it. The main page and thread list page are now generated in about a half of a second average, which is truly great.

Re: New drastic code optimisations

28 Aug 2004, 17:07
Hey A-man !

Been away for some time (holidays, lots of work, reheasals, computer dead, gig...) but what a pleasant surprise coming back ! The forum site flows like never before. Congrats !

The Fantomenal K
The Fantomenal K

← Back to Roland Clan site and forum