Article View: borland.public.interbase.opensource
Article #149IB 6020 Sweeping not preventing database growth
From: C.H. Luke
Date: Tue, 06 Sep 2005 02:06
Date: Tue, 06 Sep 2005 02:06
30 lines
2174 bytes
2174 bytes
I write a utility in Delphi 7 that inserts a bunch of records into a temporary local IB 6020 database table. I do this repeatedly for a bunch of files that I have to upload. The type of file that has to be uploaded is not simple. A bunch of calculations have to be performed on each line, then an INSERT() can be made. For safety reasons, I always switch on forced writes and I commit every insert. Before loading the next file's worth of INSERT()'s I delete the contents of the entire temp table. Of course, this makes the database grow, a lot. I need to control this growth. It grows a little over a meg each file I load, and I have thousands of files to load, so, database growth must be controlled. I did an experiment where I a) Deleted all the previous records, b) Did a sweep using IBConsole, c) loaded the next file. Result: The database grew by about a meg, as usual. I thought a sweep was supposed to free up garbage records left over from a delete, so that new INSERT()s could use that space and *not* grow the database file any further. What am I doing wrong, and how can I control this database growth to about 5MB max? (I have Sweep interval set at the default 20,000) The reason I'm using IB for this temp table is that it provides me with all the power and flexibility of SQL, which I need. (Versus using a "dumb" text file or a TClientDataSet in memory, etc.) Thanks in advance for any help you can provide.
Technical Details
Message-ID:
<431cf7a8.171457212@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 106772,522a4d66cc980aa7,start X-Google-Attributes: gid106772,public X-Google-Language: ENGLISH,ASCII-7-bit From: nospam@telusplanet.net (C.H. Luke) Newsgroups: borland.public.interbase.opensource Subject: IB 6020 Sweeping not preventing database growth Date: Tue, 06 Sep 2005 02:06:51 GMT Message-ID: <431cf7a8.171457212@newsgroups.borland.com> X-Newsreader: Forte Free Agent 1.21/32.243 NNTP-Posting-Host: 142.179.164.127 X-Trace: newsgroups.borland.com 1125972355 142.179.164.127 (5 Sep 2005 19:05:55 -0700) Lines: 30 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail