Scoop by R Mutt (2.00 / 0) #2 Thu Apr 10, 2008 at 12:00:04 PM EST
I wonder if the right-hand sidebar is a bottleneck.

Often when I load a page I get the main screen quite quickly, but it takes another 20-30 seconds for the sidebar to load. Not sure if it's doing hundreds of sequential database calls or something.



Yes by hulver (4.00 / 1) #4 Thu Apr 10, 2008 at 12:08:36 PM EST
Quite possibly.

Some of the boxes are pretty intensive. If you've got an enourmous hotlist that can slow it down a bit (but not that much). Much of it is cached as well, but all the caching code was custom written just for that box. There is no common code for caching something.

Example. If a box wants to know the title of a story, it will often make a database call to get the  story title. Often another box will want to know the same thing, so it will do the same. Sometimes the same box will make 3 databases calls for the same story, to get three different bits of information.

A lack of standard routines to get that stuff is the cause really. It needs some global routines to fetch and cache story and comment stuff. Even just caching it for that page view would save a lot of redundent database calls.

There is also a bug in the story update code which people who have "edit my own story" can exploit to edit any story on the site. It's very difficult to fix because of the spagetti code of the story update section. It's very messy in places. That's why only cabal members can edit their own stories right now, because most of them can be trusted to not fuck the site up.
--
smart, pretty, sane. pick two - georgeha
[ Parent ]

"most of them" by R343L (2.00 / 0) #6 Thu Apr 10, 2008 at 12:17:36 PM EST
I like how you qualify that. I do indeed.

And thanks for doing a SWFC -- I'm not sure this one will take off and, in any case, it was just a lark from channel....

"There will be time, there will be time / To prepare a face to meet the faces that you meet." -- Eliot
[ Parent ]

I love listening to people by hulver (2.00 / 0) #11 Thu Apr 10, 2008 at 03:36:49 PM EST
I think it's a great idea. Putting a real voice to the internal voice of people is fantastic.
--
smart, pretty, sane. pick two - georgeha
[ Parent ]

I remember an old dKos discussion about that by gzt (4.00 / 1) #5 Thu Apr 10, 2008 at 12:14:59 PM EST
They were essentially saying, yes, it is, and with the amount of traffic they got, it got really bad.

[ Parent ]

Login
Make a new account
Username:
Password: