Subject | RE: [firebird-support] Batch insert performance |
---|---|
Author | Leyne, Sean |
Post date | 2006-08-23T21:19:55Z |
Richard,
That not terrible, but I have seen better.
Are there any triggers firing for the inserts?
How big is an average rows? How many fields?
performance, is the new ODS structure for the indexing data, which would
make the process slightly slower as the structure has more pages to
update.
(This slow down on inserts pays significant dividends later on SELECT
statements, which can run much faster due to the new structure)
Sean
> I am getting about 1e6 rows/hrThat works out to 277 rows per second.
That not terrible, but I have seen better.
Are there any triggers firing for the inserts?
How big is an average rows? How many fields?
> The insert is being done in a loopWell your on the right track, indexing can make things real slow.
> with a prepared statement before any indexes are created.
> WouldHow often are you committing the rows?
> batching the inserts improve things?
> (This is with FB2 RC3, but I am hoping the answer is more general.)The only thing that FB2 has changed which would affect insert
performance, is the new ODS structure for the indexing data, which would
make the process slightly slower as the structure has more pages to
update.
(This slow down on inserts pays significant dividends later on SELECT
statements, which can run much faster due to the new structure)
Sean