 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
jars Guest
|
Posted: Fri Apr 20, 2007 12:00 am Post subject: Firebird grows too much |
|
|
Hi,
I'm using Delphi 7 with Firebird 1.5.
My app load data from a plane file with comma delimitted data and insert
into DDBB every 15 minutes.
It's work fine but another app developed with .NET and ODBC doing the same,
grows the BBDD up 60%.
I know that with backup-restore it turn to normal size but the problem is
that can't do that every day.
Can tell me how solve this problem.
Thanks in advance.
Jorge |
|
| Back to top |
|
 |
Aage Johansen Guest
|
Posted: Fri Apr 20, 2007 1:14 am Post subject: Re: Firebird grows too much |
|
|
jars wrote:
| Quote: | Hi,
I'm using Delphi 7 with Firebird 1.5.
My app load data from a plane file with comma delimitted data and insert
into DDBB every 15 minutes.
It's work fine but another app developed with .NET and ODBC doing the same,
grows the BBDD up 60%.
I know that with backup-restore it turn to normal size but the problem is
that can't do that every day.
Can tell me how solve this problem.
|
If backup+restore reduces the database size significantly, I believe
this is because of "old record versions". These are not created by
loading data (insert), but from updating and deleting.
So, something else (apart from loading data) is happening to your
database. Do check the inner workings in the "another app".
Updating/deleting records together with suboptimal transaction
management could be part of the problem.
--
Aage J. |
|
| Back to top |
|
 |
Guillem Guest
|
Posted: Fri Apr 20, 2007 1:56 pm Post subject: Re: Firebird grows too much |
|
|
jars wrote:
| Quote: | Hi,
I'm using Delphi 7 with Firebird 1.5.
My app load data from a plane file with comma delimitted data and
insert into DDBB every 15 minutes. It's work fine but another app
developed with .NET and ODBC doing the same, grows the BBDD up 60%.
I know that with backup-restore it turn to normal size but the
problem is that can't do that every day. Can tell me how solve this
problem.
Thanks in advance.
Jorge
|
Aage is right. This has to do with updated and deletes.
Firebird database files up to version 2.0.1 grow when you insert data
or do updates that require more space and there is none available in
the database file.
OTOH deleting and updating that eliminates data does not make Firebird
recover the space in the file. This would require to reorganize the
database file, which is far too costly. Having your database file
growing has almost no impact on performance.
It seems your .NET app is doing a lot of deletes and updates.
I can not give you more specific details. You could subscribe to the
firebird-support mailing list. There are some firebird gurus in there
that can give you more information on this.
--
Best regards :-)
Guillem Vicens Meier
Dep. Informatica Green Service S.A.
www.clubgreenoasis.com
--
Contribute to the Indy Docs project: http://docs.indyproject.org
--
In order to contact me remove the -nospam |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|