OpenAmiga (155/959)

From:Aaron Optimizer Digulla
Date:3 Aug 2000 at 12:40:55
Subject:Re: AMIOPEN: Patches for bugs

On Wed, Aug 02, 2000 at 04:53:45PM -0400, Ray A. Akey wrote:

> > And I would propose to look at JitterBug instead; JitterBug has a much
> > more simple interface and it doesn't need a database (which makes it much
> > more simple to setup, maintain and backup).
> tsk tsk.. Couldn't be more simple than it is now: "mysqldump -u <user> -p
> dbname >dbname_bak.sh" :)

Well, my last boss told me this story: He had to sort the data in a
database table. The table never changed and he added all the necessary
indexes. Sorting took about 2 minutes (ie. SQL statement with ORDER BY).
That was too slow. So he exported the whole table and used "sort".
That took 2 seconds.

Conclusion: Use a database when you need concurrency, large amounts
of data and complex data structures. For everything else, use
a directory and a set of files. FileSystems are, compared to databases,
reliable, simple to understand and use, easy to administer and lean.

PS: If you need another example then compare the speed of using
win.ini (the original way to store config information on Windows)
and the new "registry" database. Plus the reliability, stability,
ease of use, etc.



==============================================
Sowatec AG, CH-8330 Pf�ffikon (ZH)
Witzbergstr. 7, http://www.sowatec.com
Tel: +41-(0)1-952 55 55
Fax: +41-(0)1-952 55 66
----------------------------------------------
Aaron "Optimizer" Digulla, digulla@sowatec.com
==============================================
Subscribe/Unsubscribe: open-request@amiga.com
Amiga FAQ: http://www.amiga.com/faq.html