Links to know aboutMusic The Chiara String Quartet Chiara Quartet (MySpace) Greenwood Music Camp UNL School of Music PHP PEAR Installer Manifesto phpDocumentor PEAR phar docblock PHP_Parser PHP_Parser_DocblockParser PHP_ParserGenerator PHP_LexerGenerator PEAR_PackageFileManager PHP_Archive Games_Chess Blogs Joshua Eichorn Paul M. Jones Davey Shafik Popular EntriesSetting up your own PEAR channel with Chiara_PEAR_Server - the official way
(30) Do you develop a website? It is infinitely better to synchronize live and development sites using the PEAR Installer(25) doing the PEAR thing(19) Using PEAR 1.4.0 to install PEAR packages on a remote host(19) phpDocumentor and __get/__set/__call - give us your ideas (RFC)(17) CategoriesPowered by |
Tuesday, October 17. 2006statistics are back up for pear.php.netTrackbacks
Trackback specific URI for this entry
No Trackbacks
Comments
Display comments as
(Linear | Threaded)
This all sounds good and dandy but wouldn't it be more efficient to store those data bits in a say ... arrays in php files or something along those lines ?
It would save a database query even tho it might mean additional I/O but I'd say that's a fair comprimise since the database has always been the weak part of the whole pear web. Anyway just my 2 cents, the current approach is tho nifty.
The database used to be the weak part because the queries were insanely inefficient. The downloads table had 27 milllion entries with no key on the most significant search terms. The key would have been impossible to create because insert would have become too slow. In addition a few other slow queries did not have proper keys, something that was fixed yesterday.
The sql dump of the database dropped from 3.2 GB to 180 MB after deleting the downloads table Using a static file might seem better, but then we run into concurrency issues. Anything that isn't a single byte runs the serious risk of colliding writes, something a database handles much better. In any case, there you have it - we're lean and mean now
Looking at the per-category statistics.. all download counts seem to be on 0, and there's a bunch of categories that show no packages.
Sure enough, must be a bug that needs fixing, and so we'll fix it
Have you looked at the archive table type for all the download data and then using summary tables for counts for project and releases downloads?
We actually can't consider archive, because the server is running MySQL 4.0. It may be a possibility on upgrade, but I don't think we'll even do that. More likely is to write a log scraper script and store the stats in the database with a cron job.
|
Links in this articlePEAR Installer ManifestoCalendar
QuicksearchMy Latest ReleasesTop Exitspear.php.net (240)
www.php.net (76) pear.chiaraquartet.net (42) pecl.php.net (41) php.net (36) Blog Administration |
|||||||||||||||||||||||||||||||||||||||||||||||||