Reply to Re: speed: file vs. DB

Your name:

Reply:


Posted by Tony Marston on 10/23/10 11:20

Writing is not the issue, reading is. If you have a text file containing
100,000 records how quickly can you read just one particular record?
Database tables have keys, so it is very easy to read a record with a
particular key value. Text files don't have keys, so you cannot go straight
to a particular record. You have to read serially through the whole file
until you happen to find the record you want.

If you know so little about databases then what makes you think your little
project will be of use to anyone?

--
Tony Marston

http://www.tonymarston.net



"Olaf Noehring" <olaf0000@team-noehring.de(0000=year)> wrote in message
news:Xns968A7008FBAADteamnoehring@195.14.215.228...
> Hi
>
> I am the administrator of TSEP - The Search Engine Project
> (www.tsep.info).
> We developer are unclear about the speed of two different methods:
> Is it faster to
> a) write to a file
> or
> b) update a record in a database
>
> Olaf
>
> --
> http://www.team-noehring.de

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация