It is currently Sat May 17, 2025 11:47 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
Offline
 Post subject: KGS Game Archives: suggestion for improvement
Post #1 Posted: Wed Oct 27, 2010 6:30 pm 
Dies with sente

Posts: 124
Liked others: 5
Was liked: 13
Rank: IGS 1k
Is there any particular reason why KGS Game Archives give links to months even if the player didn't play any games in those months?
It is perfectly capable of filtering the months before the first game and after the last game. Why does it not filter the empty months in between.

For example, here's a link to the first month of Yamabushi (for no particular reason)

http://www.gokgs.com/gameArchives.jsp?u ... 03&month=6

There is a table on the page with links to different months when presumably Yamabushi played some games.
The table gives the impression Yamabushi played some games in every month from Jun 2003 to Feb 2007.
This is not the case, however. Most of the months are empty.

It would be nice if those empty months were not displayed.

Top
 Profile  
 
Offline
 Post subject: Re: KGS Game Archives: suggestion for improvement
Post #2 Posted: Thu Oct 28, 2010 9:31 am 
Lives in gote
User avatar

Posts: 450
Location: Portland, OR USA
Liked others: 257
Was liked: 287
KGS: wms
The links to empty months are there because otherwise I'd have to search a player's whole game list to find which months have games and which don't. The archive pages already are the main load for the web server, this would only make them significantly worse.

I also can't precompute which months people have games because, based on the time zone of the viewer, the games may move from one month to another.

When the server I use gets upgraded I may add the code to check at runtime for which months have games, but that's at least a year off.

Top
 Profile  
 
Offline
 Post subject: Re: KGS Game Archives: suggestion for improvement
Post #3 Posted: Thu Oct 28, 2010 11:18 am 
Lives in gote
User avatar

Posts: 643
Location: Munich, Germany
Liked others: 115
Was liked: 102
Rank: KGS 3k
KGS: LiKao / Loki
wms wrote:
I also can't precompute which months people have games because, based on the time zone of the viewer, the games may move from one month to another.

:shock:
I would have used UTC for that without a second thought. Do you mean that even the monthly zip file you can download is different depending on where the user resides? I would have expected that the zip files get cached and are the same for everyone.

_________________
Sanity is for the weak.

Top
 Profile  
 
Offline
 Post subject: Re: KGS Game Archives: suggestion for improvement
Post #4 Posted: Thu Oct 28, 2010 1:12 pm 
Lives in gote
User avatar

Posts: 450
Location: Portland, OR USA
Liked others: 257
Was liked: 287
KGS: wms
Well, the date and time of all games shown is in your local time. Anything else would be inconvenient at best. It would be confusing if you saw a game dated July 1 on the June page, so it follows that the month breakdown also has to be localized. And for the zip file to have something different from what you see in the list would, again, be confusing, so yes, when you download a monthly zip file the files are selected based on your local time.

The zip files are not cached, they are generated on the fly. Selecting the files in the database probably takes at least 10 times the CPU power and disk space compared to making the zip file so it would be pointless to cache them. Getting the list of games requires a 5-way join across tables, some of which have over 80,000,000 rows, so this is going to dominate any work done in the archives.

Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group