Firebird SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesFirebird SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 20th, 2004, 05:08 AM
thomasj thomasj is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 10 thomasj User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unnecessarily growing of database

How do I prevents my database from growing unnecessarily?

Ex. I have a empty database, with 1 table.
Size 1072 kb.

I insert 100.000 rows in the table.
Now the size is 6024 Kb.

Then I delete all rows in the table.
But the database size is still 6024 Kb!!


How do I get the "real" database size, without making a backup/restore?






Database info:
Page size is 8192
Page buffers is 8192
Sweep interval is 2000
Forces Writes = true
Firebird superserver WI-V6.3.1.4481 Firebird 1.5

Reply With Quote
  #2  
Old September 20th, 2004, 12:55 PM
klemmo klemmo is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 8 klemmo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 21 m 37 sec
Reputation Power: 0
re: Unnecessarily growing of database

just try to insert the records again and you will see, that the used space is not lost, because Firebird reuses all empty pages for new data, but it does not free it for OS Usage without backup and restore.

but have a look in the statistics if the garbage collection works properly, otherwise use gfix to sweep the database manually.


Best Regards

Holger Klemt

The most Expert for InterBase and Firebird -www.ibexpert.com
HK Software - Huntestrasse 15 - 26135 Oldenburg - Germany
Phone/Fax +49 700 IBEXPERT (42397378) www.h-k.de
Training and Support for Delphi, InterBase, Firebird, AS/400

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesFirebird SQL Development > Unnecessarily growing of database


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway