RE: [PHP] what PHP really needs

From: Date: Sun, 25 Jan 2004 01:21:23 +0000
Subject: RE: [PHP] what PHP really needs
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-175661@lists.php.net to get a copy of this message
>Let the db server handle query/cache consistency ... why put yet another >server in the way that will have to be triggered by the underlying db to >clear ITS cache? Very true, but tests I've done in the past with PostgreSQL and MySQL-driven PHP sites show that adding a simple static file cache (for data that changes rarely) can make a world of difference on a heavily-loaded site, trimming response times by 90% in some cases. A database server by nature must assume that all data is equally mutable. An application developer, however, knows by design how "fresh" any one piece of data needs to be and can cache accordingly. E.g., don't hit the database for your site's navigational structure or news articles every single time, if these things don't change more than a few times per week. --------------------------------------------------------------------- michal migurski- contact info and pgp key: sf/ca http://mike.teczno.com/contact.html

« previous php.general (#175661) next »