Re: hsqldb vs. derby



Thank you Boris for this very useful info.

You are right, some of the tables contain 1-2 millions of records (how could
I forget that in my post?).

Zsolt

"Boris Stumm" <stumm@xxxxxxxxxxxxxxxxxxxx> schrieb im Newsbeitrag
news:e7u9nf$oac$1@xxxxxxxxxxxxxxxxx
Zsolt Koppany wrote:
our application runs right now with mysql but we would also like to
support a java DB either hsqldb or derby. I have never worked with them
but know mysql. We have approx. 100 tables and couple of hundred queries
and some of them are pretty complicated.

Number of tables does not matter, its the number of tupels in the tables.
I'll assume several thousand and more per table.

I used hsqldb as memory-only db, and there, inserts and _simple_ queries
were faster than derby.

But for your case, I'd say that hsqldb will not be a good choice. It
seems that there is basically NO optimizer, and the order of tables in
the from clause decides if the same query takes a second or a day.
Since you have some hundred queries which you'd maybe have to rewrite
and "manually optimize", I think you will have less effort if you just
take derby and trust their optimizer. If you rely on subselects, even
manually rearranging the order of tables will not work in all cases
with hsqldb, while derby seems to do a good optimization job.


.



Relevant Pages

  • Re: hsqldb vs. derby
    ... support a java DB either hsqldb or derby. ... I used hsqldb as memory-only db, and there, inserts and _simple_ queries ... take derby and trust their optimizer. ...
    (comp.lang.java.databases)
  • Re: Postgre oder MySQL
    ... dass HSQLDB viel zu wenig Features hat. ... Und wenn ich dann an das Ablegen einer DB als Textfile denke .... ... Ich glaube Derby iss um längen besser ... ... Sobald es um komplexe Anfragen auf großen Datenmengen geht, ist Derby ...
    (de.comp.lang.java)
  • Re: Derby vs HSQLDB
    ... HSQLDB is the db of choice in the Open Office software suite. ... Derby, however, is supported by IBM and Sun Microsystems, and is embedded in Sun's application servers. ... The same principles apply to embedding this into a web project in which Derby is embedded in the server application. ...
    (comp.lang.java.databases)
  • Derby vs HSQLDB
    ... There are those two 100% Java databases, Derby and HSQLDB. ... does anyone have experience with both and can give recommendations about which one to pick? ...
    (comp.lang.java.databases)