Efficiency of file vs database

This is a discussion on Efficiency of file vs database within the PHP Language forums, part of the PHP Programming Forums category; On 22 Jan 2007 02:20:59 -0800, in comp.lang.php "ircmaxell" <ircmaxell@gmail.com> &...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #11 (permalink)  
Old 01-22-2007
Jeff North
 
Posts: n/a
Default Re: Efficiency of file vs database

On 22 Jan 2007 02:20:59 -0800, in comp.lang.php "ircmaxell"
<ircmaxell@gmail.com>
<1169461259.901956.297150@11g2000cwr.googlegroups. com> wrote:

>| On Dec 19 2006, 3:29 pm, Ivan Marsh <anno...@you.now> wrote:
>| > On Tue, 19 Dec 2006 11:59:29 -0800, juss...@gmail.com wrote:
>| > > Usually when in need to compare which is faster, I tend to think that in
>| > > the very end databases are just flat files. The only difference between
>| > > real flat files and database is the database software, which has been
>| > > built to optimize, among other things, the speed of quering of the data.
>| > > If you disregard all of the fundamentals of database design...
>| > > normalization, index optimization, etc.
>| >
>| > A flat file can be very fast as long as you're talking about a very small
>| > file. At the point the overhead of the database server matches the access
>| > time of the flat file based on its size the database server will always be
>| > faster... assuming your database isn't designed like a flat file (which it
>| > shouldn't be).
>|
>| Well, I wound up redesigning the program anyway, and what a speed
>| difference!!! I went to an almost completely database system (I still
>| write a bunch of files, but I don't read any of them). The page load
>| went from .93 seconds to .24 seconds... The file read portion went
>| from .36 seconds to (are you ready?) a measly .00023 seconds using the
>| database... WOW!!! You can say that is a little difference...


Just to add to this discussion...

What would be wrong, in this instance of a single variable under 1k,
being placed into a $_GLOBAL variable?

{Please no flames as I think that it is an interesting problem and
maybe a solution to a limited set of file/database problems).
---------------------------------------------------------------
jnorthau@yourpantsyahoo.com.au : Remove your pants to reply
---------------------------------------------------------------
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:51 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0