Re: Looking for a database



Paul Smith wrote:
On 1/30/06, Uno Engborg <uno@xxxxxxxxxxx> wrote:
Could someone please recommend a nice and well documented database
program for a person who has never used a database?
That's not much to go on when asking for a recommendation.
The obvious choices on fedora will be MySQL and postgresql
and between those, postgresql follows the sql standards
more closely and has a less restrictive license.  Mysql
might be slightly faster if your usage is mostly read-only.

MySQL being faster is than postgresql is mostly a myth. It may be true
if you have very simple queries or very few connected users. In general
Postgresql is significantly faster.

The MySQL is faster myth, goes back to the MySQL 3 days when that
actually was the  case,
mostly because MySQL back then didn't support transactions, or
referential integrety
checks while Postgresql did. (MySQL still doesn't fully support
referential integrety).

As an example, I created a table containg absolute paths to filenames in my
filesystem, the file size and the md5 sum of the file. I then made a query
to group the files by the md5 sum, and ordering these groups by file size.
On my filesystem that took 12 minutes in postgresql 8.1, and over 16 hours
using mysql 5.

To make it worse, MySQL doesn't have the richness in SQL that postgresql
offers. This often makes queries to MySQL more clumsy. E.g. try do a
relational
division without using "exept".

Another factor in the choice between MySQL or Postgresql is the fact
that Oracle have bought the innodb
storage engine that is the main the one you need to use if you want to
come even close to the feature set of
postgresql does. In my mind, this creates some uncertainty for the
future. It gives a competitor the means
to shut down commersial licensing or raise the prices. That can never be
good.

If I was to chose between Postgresql and another free database it would
be between Postgresql and Firebird,
where I would go for firebird for embedded solutions or when I needed to
have databases that resided in
just one file. Just like Postgresq, Firebird is very close to the sql
standard, but it is not as feature rich as Postgresql

Thanks, Uno, for your very detailed explanation.

As desktop databases for Linux, I guess one can only find OpenOffice
Base and Kexi, is not it?

Paul

Is kexi a database in its own capacity? That was news to me. I thaught that it was
used as frontend to other databases, much as you can use OpenOffice to connect
to anything with ODBC or JDBC.


If you count desktop frontends, you could also check out Rekall
http://www.thekompany.com/products/rekall/

If you are looking for an Access replacement, Firebird combined with OpenOffice Base,
Kexi, Rekall might do it. Just like in Access, a in Firebird a database is just one file that you can store anywhere you
like in the file system (the Firebird engine must still be installed though).


Using Postgresql, would be more comparable to MS-SQLServer.
Unless you really don't need the one file feature of Firebird, I would suggest you go for postgresql, as it has much better free documentation, and better support in free other free software applications.


Regards
Uno Engborg


-- fedora-list mailing list fedora-list@xxxxxxxxxx To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



Relevant Pages

  • Re: Ever thought about using PostgreSQL? Ever wonder what it is all about?
    ... But since Firebird is becoming a better ... me 4GB) database files, I don't have motivations to make a profound ... PostgreSQL's PLpgsql language. ... Not to mention that PostgreSQL has Schemas and things like DBI_link ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: Python does not play well with others
    ... MySQL, I want PostgreSQL, he wants Firebird, they want an interface to ... straightforward OS, language package, web server, and db installed. ...
    (comp.lang.python)
  • Re: Windows Ada database support.
    ... >>for example) promote the use of Object IDs (basically Row IDs). ... >>Still others don't support the concept at all (MySQL). ... >>within certain database design restrictions). ... PostgreSQL uses an API that opens/creates etc. and returns ...
    (comp.lang.ada)
  • Moving a PostgreSQL database from one server to another
    ... I'm just moving to PostgreSQL from MySQL, ... my problem is that I set up and populated a database on my ... but of course my production website is not *on* my notebook. ...
    (Fedora)
  • Re: OT: give advice to MSAccess user
    ... On Wed, 2005-03-16 at 03:55, Duncan Lithgow wrote: ... > database - currently MSAccess. ... I don't know if there is a front end for MySQl or not. ... You may want to take a look at Postgresql as well. ...
    (Fedora)