Which costs more: connecting to a DB or accessing the file system?

From: Date: Fri, 21 Jun 2002 15:19:11 +0000
Subject: Which costs more: connecting to a DB or accessing the file system?
Groups: php.general 
Request: Send a blank email to php-general+get-103285@lists.php.net to get a copy of this message
I was reading somewhere (can't remember where) that connecting to a db is a pretty costly transaction. DB queries aside, does anyone know of any benchmarks that demonstrate file access vs. db connections? Similarily, while DB queries offer alot of power, would it be cheaper (faster) to drop simple information that does not require heavy queries into a file and access it through the file system? Michael

« previous php.general (#103285) next »