Forums FAQForums FAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin 

DDRFreak going haywire!! The Apocalypse!!1
Goto page Previous  1, 2  
This topic is locked you cannot edit posts or make replies    DDR Freak Forum Index -> Site Feedback
View previous topic :: View next topic  
Author Message
Shen
Trick Member
Trick Member


Joined: 04 May 2002
Location: TN
20. PostPosted: Fri Mar 12, 2004 3:44 pm    Post subject: Reply with quote

Cool. Thanks, I just wanted to know if it was just me or not.
Back to top
View users profile Send private message
MPB3.Radio
Trick Member
Trick Member


Joined: 05 Dec 2002
Location: P-Town
21. PostPosted: Sat Mar 13, 2004 2:49 am    Post subject: Reply with quote

phpBB itself is optimized for MySQL, while I understand that PostgreSQL is reasonably faster under heavy loads. Has anyone actually optimized the SQL queries that the board makes? The pgsql driver that phpBB uses is rather hackneyed.

The forum jump drop menu can also contribute a lot of strain.
Back to top
View users profile Send private message Visit posters website AOL Instant Messenger
J Dogg
Administrator
Administrator


Joined: 16 Jan 2002
Location: Sunnyvale, CA
22. PostPosted: Sat Mar 13, 2004 12:15 pm    Post subject: Reply with quote

Radio wrote:
phpBB itself is optimized for MySQL, while I understand that PostgreSQL is reasonably faster under heavy loads. Has anyone actually optimized the SQL queries that the board makes? The pgsql driver that phpBB uses is rather hackneyed.

The forum jump drop menu can also contribute a lot of strain.


Yeah, when we moved to pgsql, we changed the SQL queries to more postgres-friendly versions. The forum jump drop menu? How does that affect things?
_________________
Back to top
View users profile Send private message Visit posters website
Cutriss
Staff Member
Staff Member


Joined: 24 Jan 2002
23. PostPosted: Sat Mar 13, 2004 10:40 pm    Post subject: Reply with quote

Does the menu execute a query every time a pageload is executed, as opposed to using static/cached content? To check for new forums to add to the list?

I imagine that's one of the first things that would've been cached, as it changes very infrequently (like less than once every six months)...
_________________

Sentient Mode is capable...
Back to top
View users profile Send private message Visit posters website AOL Instant Messenger Xbox Live Gamertag
J Dogg
Administrator
Administrator


Joined: 16 Jan 2002
Location: Sunnyvale, CA
24. PostPosted: Sun Mar 14, 2004 1:01 am    Post subject: Reply with quote

I looked at the jumpbox code, and I realized there are a ton of SQL queries in utility functions that could use caching. Thanks for pointing these things out to me. Also, the difference between caching every 5 minutes and every 6 months is extremely minimal. The biggest difference caching makes is changing it from something like 50 concurrent queries at any given time to once every so often (like 5 minutes, or even 1 minute), which frees up a tremendous amount of processing power.
_________________
Back to top
View users profile Send private message Visit posters website
MPB3.Radio
Trick Member
Trick Member


Joined: 05 Dec 2002
Location: P-Town
25. PostPosted: Sun Mar 14, 2004 5:51 am    Post subject: Reply with quote

The dropbox output itself could be cached for the various combinations of user privileges and groupings. The cached outputs would be updated whenever a change is made to the forum/category organization.
Back to top
View users profile Send private message Visit posters website AOL Instant Messenger
B4ULoveShine
Trick Member
Trick Member


Joined: 09 Jan 2004
Location: currently in the LA area
26. PostPosted: Sun Mar 14, 2004 12:25 pm    Post subject: Reply with quote

Now this is strange:

When I logged in for the second time around and going to respond on this topic, it ended up prompting me to log in.

This is the 2nd time around that happened to me.
_________________
BeForU was easily the heart and soul of DDR, until someone in Konami thought that it's a threat to the current structure (read: Konami's blatant overfunding of IIDX/pop'n).
Back to top
View users profile Send private message Visit posters website
J Dogg
Administrator
Administrator


Joined: 16 Jan 2002
Location: Sunnyvale, CA
27. PostPosted: Sun Mar 14, 2004 4:05 pm    Post subject: Reply with quote

Patient Zero wrote:
Now this is strange:

When I logged in for the second time around and going to respond on this topic, it ended up prompting me to log in.

This is the 2nd time around that happened to me.


Try deleting your cookies. I believe your problem is unrelated to the changes I made.
_________________
Back to top
View users profile Send private message Visit posters website
J Dogg
Administrator
Administrator


Joined: 16 Jan 2002
Location: Sunnyvale, CA
28. PostPosted: Sun Mar 14, 2004 5:20 pm    Post subject: Reply with quote

Ok, I just implemented caching for a bunch of utility functions, including the jumpbox stuff. The forums should be running a lot faster during peak times, and for unregistered users, it should be extremely fast, since there's even less processing to be done.
_________________
Back to top
View users profile Send private message Visit posters website
Cutriss
Staff Member
Staff Member


Joined: 24 Jan 2002
29. PostPosted: Mon Mar 15, 2004 6:43 am    Post subject: Reply with quote

I had a thought last night -

Do index.php and viewforum.php run a separate query on pageload to determine who the forum moderators are?
_________________

Sentient Mode is capable...
Back to top
View users profile Send private message Visit posters website AOL Instant Messenger Xbox Live Gamertag
Agilab
Contributor
Contributor


Joined: 10 Mar 2003
Location: Baltimore, MD
30. PostPosted: Mon Mar 15, 2004 8:00 am    Post subject: Reply with quote

I've found that loading the forums is the slowest part, but once I can get to the forum index it runs smoothly.
_________________
Back to top
View users profile Send private message Visit posters website AOL Instant Messenger
Cutriss
Staff Member
Staff Member


Joined: 24 Jan 2002
31. PostPosted: Mon Mar 22, 2004 3:12 pm    Post subject: Reply with quote

Cutriss wrote:
I had a thought last night -

Do index.php and viewforum.php run a separate query on pageload to determine who the forum moderators are?
J Dogg, what do you think about this? Is this also already cached, or is this something else that could be tightened down?
_________________

Sentient Mode is capable...
Back to top
View users profile Send private message Visit posters website AOL Instant Messenger Xbox Live Gamertag
J Dogg
Administrator
Administrator


Joined: 16 Jan 2002
Location: Sunnyvale, CA
32. PostPosted: Mon Mar 22, 2004 3:40 pm    Post subject: Reply with quote

Cutriss, I'll look into it. Something I've noticed is that phpBB uses a lot of giant queries with lots of nested SELECT statments to do stuff. Lots of those queries contain information that rarely change. If I could split them out and cache the results of the queries that rarely change, that would probably save some time.
_________________
Back to top
View users profile Send private message Visit posters website
dreamdancer
Trick Member
Trick Member


Joined: 12 Jun 2003
Location: You mean like, where?
33. PostPosted: Tue Mar 23, 2004 11:34 am    Post subject: Reply with quote

I have gotten:

Warning: pg_connect(): Unable to connect to PostgreSQL server: could not connect to server: Connection refused Is the server running on host "hydrogen.ddrfreak.com" and accepting TCP/IP connections on port 5432? . in /home/ddrfreak/www/www.ddrfreak.com/data/phpBB2/db/postgres7.php on line 80
phpBB : Critical Error

Could not connect to the database

at least 20 times today disgust.gif
_________________
Back to top
View users profile Send private message Send email
Display posts from previous:   
This topic is locked you cannot edit posts or make replies    DDR Freak Forum Index -> Site Feedback All times are GMT - 8 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2 © 2001, 2002 phpBB Group