Apache Derby performance disappointing
- From: James Appleby <james.w.appleby@xxxxxxxxx>
- Date: Thu, 16 Aug 2007 07:02:37 -0700
Hello,
I am currently adding Derby support to an application that already has
support for multiple DBMS via JDBC. I have found it to be
significantly slower than SQL Server or MySQL when performing the same
task. To provide this, I have created an exact duplicate database
within both Derby and SQL Server and ran the same query on both,
gathering timings.
The test query returns about 16,000 rows from a table with about
100,000 on it, grouping data using a timestamp that is converted to
the nearest second. This is one of the heaviest queries within the
application and what chosen to put the DBMS under the most strain. To
prevent caching interferring with the result, I made sure to restart
the DBMS before running the query.
SQL Server was at least 4 times quicker returning the results compared
to Derby. I had expected SQL Server to outperform Derby, but not by
such a huge factor. Is this result what is expected?
The initial test was based on a default, untuned installation. I then
followed tuning guidelines for Derby, increasing the page size to 32K
and increasing the maximum page count to far in excess of what should
be needed to return the amount of data I am testing. This gave some
improvements but it is still takes three times that of the same query
time on SQL Server.
As Derby is marketing itself on the same level as MySQL (Apache
provide performance figures comparing it to this) then I anticipated
similiar performance, but instead it is taking twice as long as I
consider reasonable. Is this in line with anyone elses experience?
.
- Follow-Ups:
- Re: Apache Derby performance disappointing
- From: Dyreatnews
- Re: Apache Derby performance disappointing
- From: Arne Vajhøj
- Re: Apache Derby performance disappointing
- From: GArlington
- Re: Apache Derby performance disappointing
- Prev by Date: Re: INSERTINg a Clob in a portable way
- Next by Date: Re: Apache Derby performance disappointing
- Previous by thread: BITs or INTEGERs? (J2EE EL related)
- Next by thread: Re: Apache Derby performance disappointing
- Index(es):
Relevant Pages
|