Welcome, Guest. Please Login or Register.
April 26, 2025, 07:04:38 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  General Category  |  Feedback  |  YaBB SE 1.0 Version Indexes « previous next »
Pages: [1] Reply Ignore Print
Author Topic: YaBB SE 1.0 Version Indexes  (Read 1040 times)
Ralph Button (rbutton)
Noobie
*
Posts: 12


Just a guy that is still in love with his wife!

rbutton1 WWW
YaBB SE 1.0 Version Indexes
« on: March 28, 2002, 04:52:13 AM »
Reply with quote

As a result of the numbers of messages posted on our site I have begun looking at the code as well as the database.  What I noticed was selects being done on tables that had no index on the select field.  Is this something that has been looked at in other releases?

I added various indexes and suddenly the topic screens loaded much faster.  By looking at the code for the select statements then comparing that with the indexed fields in the database I added "missing" indexes to match to the select statements.  
Logged
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:YaBB SE 1.0 Version Indexes
« Reply #1 on: March 28, 2002, 12:28:42 PM »
Reply with quote

Yes it IS being looked at for future releases and will be used.

For SE, we ported over already difficult code from Y1G and as such, you will see many things that don't look right or places that can be improved on.
Logged

Ralph Button (rbutton)
Noobie
*
Posts: 12


Just a guy that is still in love with his wife!

rbutton1 WWW
Re:YaBB SE 1.0 Version Indexes
« Reply #2 on: March 28, 2002, 02:50:13 PM »
Reply with quote

Like any code it can be improved on just wanted to be sure it found it's way on the list of possible improvements.  As making changes to the indexing sure improved the speed to load posts!!  
At 23,000+ posts and 3705 topics in a couple of months it was already bogging down, loading the screens with the messages.
My first crack at it was to add single column indexes.  My next go is to create indexes on multi columns based on the selects being done and drop the single column indexes.  You don't want the indexes to be too many or it's begins to affect inserts into the database.  
As my ISP has given me the "keys" to the server I now have much more control over the database setup.
 
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  General Category  |  Feedback  |  YaBB SE 1.0 Version Indexes « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 2.899 seconds with 19 queries.