in reply to editing/deleting record in flat file database

Did anyone else cringe at the phrase "flat file database"???
I know I did.

Its one thing to toss data around in flat files. (In fact, appending to flat files is a great way to collect data for parsing.) But flat files are NOT data bases. There is a reason for fifty million variations of SQL DBs. If you are doing something that works like a database, by all means... use a data base!

  • Comment on RE: editing/deleting record in flat file database

Replies are listed 'Best First'.
RE: RE: editing/deleting record in flat file database
by Jonathan (Curate) on Oct 18, 2000 at 13:57 UTC
    Errrr, I didn't.

    It is a matter of scale. If the amount of data is small and the database design is simple then why not?
    Least ways you can spare yourself the great overhead (and often cost) of creating a SQL database and having to support it (I've seen so many sites where whole teams of DBA's were needed to support relatively simple databases)

    For under 5000 records I'm not convinced that opening a database connection squirting your SQL across the TCP socket and getting a reply back is any quicker than scanning the file. Especially if your data set has no suitable keys. Having said all that I'm quite a fan of AnyDBM_File as well

    Maybe I'm just an old disillusioned DBA :-)

    "We are all prompted by the same motives, all deceived by the same fallacies, all animated by hope, obstructed by danger, entangled by desire, and seduced by pleasure." - Samuel Johnson