UBB.Dev
Posted By: RandyJG Performance and aged threads to display - 04/15/2003 5:49 AM
Does anyone know how much decreasing the displayed aged threads affects performance?
I don't think any tests have been done to tell. I think the number of queries should be the same, the difference would be the time it would take for them to be shown.
Posted By: ehill Re: Performance and aged threads to display - 04/22/2003 11:12 PM
But wouldn't the parsing stop once it got to the end date for example, then it would not have to continue going through the entire database. I know on the perl version that the date range made a huge difference in speed of the board.
Posted By: JoshPet Re: Performance and aged threads to display - 04/22/2003 11:17 PM
I know Rick has suggested as a way to save server load, set your theme file to only display 10 posts per page (as it reduces the number of queries). The theme file defaults apply to all unregistered users.

I think that is more important than the date range. Because as long as you aren't displaying them all on the same page... the queries etc... are reduced.

So that has always been Rick's biggest tip to save server load. Registered users can always override the number per page in their display settings.
Posted By: ehill Re: Performance and aged threads to display - 04/22/2003 11:21 PM
Mine is currently set to 20 per page. But I did notice a speed improvement when reducing the date range. For our most popular forums we have only a 2 week display for notes for the defaults. When we made all of those changes then we updated our user database to force the defaults on everybody, then they could change them after the fact. Very few have actually changed them though.
Posted By: AKD96 Re: Performance and aged threads to display - 04/23/2003 4:25 AM
What would that query to force the changes be?
Posted By: ehill Re: Performance and aged threads to display - 04/24/2003 6:26 PM
I would have to go back and look as I did it such a long time ago. But it was an update on the user files. Forget which one in particular -- would have to look at the structure now as I am still running a very old version. But it set all users and the anon users to the default style sheets, number of notes displayed, etc.

The reason for the change in the database is because once we made all of the changes then it only worked for new users and not any of the existing users. So we forced it on everybody, then they could change thier personal settings after the fact. But it worked for what we wanted it to do.
Posted By: JoshPet Re: Performance and aged threads to display - 04/24/2003 6:29 PM
Yeah,

To update Stylesheets for everyone back to the default:

UPDATE w3t_Users
SET U_StyleSheet = 'usedefault'


To update posts per page etc.. to 10

UPDATE w3t_Users
SET U_PostsPer = '10',
U_FlatPosts = '10'



That will update everyone.
Posted By: AKD96 Re: Performance and aged threads to display - 04/24/2003 10:13 PM
Muchos Grassy Ass!
© UBB.Developers