Subject | Re: [Firebird-Java] performance tuning jdbc |
---|---|
Author | karthick srini |
Post date | 2004-09-10T12:06:15Z |
Dear Roman ,
thanks for your response. We tried your suggestions
but it don't has boosted the performance. Herewith we
made our response inline with your reply,
transaction and FK. Even compared to Mysql's InnoDB
firebird's insertion rate performance is lower (1.5
times in preapred statementa and batch , in case of
ten thousand records). Direct statement insertion is
of the order of 3 times that of mysql for 10000
records. Our scenario is of mainly of insertion. But
in firebird selection is pretty fast since it supports
configuration of cache.
(5k, 10 k etc). But even insertion rate is less
performance.
with default. Used the same for both mysql and
firebird.
FK or PK. But our application has both. So we are
unable to use that option.
Herewith I have attached my test program for your
reference,
Thanks again for your inputs,
Thanks & Regards,
S.Karthick
_______________________________
Do you Yahoo!?
Shop for Back-to-School deals on Yahoo! Shopping.
http://shopping.yahoo.com/backtoschool
[Non-text portions of this message have been removed]
thanks for your response. We tried your suggestions
but it don't has boosted the performance. Herewith we
made our response inline with your reply,
> People say it is lower. Since I'm not using MySQL, IWe have used Mysql's InnoDB engine. It supports
> cannot neither confirm
> nor deny this. I think MySQL has right to claim that
> it is the fastest
> database, they earned that paying the price of being
> non-transactional, etc.
> But other reports say that in many cases Firebird is
> as fast as Oracle,
> sometimes even faster.
transaction and FK. Even compared to Mysql's InnoDB
firebird's insertion rate performance is lower (1.5
times in preapred statementa and batch , in case of
ten thousand records). Direct statement insertion is
of the order of 3 times that of mysql for 10000
records. Our scenario is of mainly of insertion. But
in firebird selection is pretty fast since it supports
configuration of cache.
>We used transaction in batch size you have specified
> First of all, no auto-commit mode. Or more
> correctly, no separate inserts in
> auto-commit mode. Either use batch updates (in this
> case complete batch is
> executed in one transaction) or use explicit
> transaction management. Keep
> batch size between 1,000 and 5,000-10,000 inserts.
>
(5k, 10 k etc). But even insertion rate is less
> Also you can improve the performance by using theBut type 2 driver has not improved the insertion rate
> Type 2 JDBC driver when
> connecting to the server running on the local
> machine
> (jdbc:firebirdsql:local URLs). Even more, you can
> use embedded server
> driver, but in this case you have to have an
> exclusive access to the
> database on local file system.
>
performance.
> Try tuning the socket buffer size when using theSince it remains as System configuration I tested
> type 4 JDBC driver.
with default. Used the same for both mysql and
firebird.
> Also consider using external tables. This has almostExternal tables cannot be created for tables having
> nothing to do with the
> JDBC driver, but people say that the insertion rate
> can be up to 10 times
> higher compared to the API calls.
FK or PK. But our application has both. So we are
unable to use that option.
Herewith I have attached my test program for your
reference,
Thanks again for your inputs,
Thanks & Regards,
S.Karthick
_______________________________
Do you Yahoo!?
Shop for Back-to-School deals on Yahoo! Shopping.
http://shopping.yahoo.com/backtoschool
[Non-text portions of this message have been removed]