Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 06-05-2002, 07:38 PM
jone jone is offline
Senior Member
 
Join Date: Jul 2001
Posts: 456
Default InTerBase batabase file ?

Who know,Why the zise of database file is be reduced when restore it from a back-up database file ? ( Ex. befor backup the zise is 13 MB, after restore thse size is 9 MB), but I saw every thing worked well ?
Reply With Quote
  #2  
Old 06-05-2002, 10:50 PM
MartinOaktree MartinOaktree is offline
Member
 
Join Date: Apr 2002
Posts: 93
Default RE: InTerBase batabase file ?

Hi,

when You have delete some datarows, the filespace is only marked as delete, when you store new DataRows, then this Space is used, but when you backup the Database and restore it,
then the deleted space is not restored!

So if You delete many Rows, and insert no new Rows,
then the Size of Database-file is decreased.

Hope this helps.

Martin
Reply With Quote
  #3  
Old 06-06-2002, 07:40 PM
jone jone is offline
Senior Member
 
Join Date: Jul 2001
Posts: 456
Default RE: InTerBase batabase file ?

is there any way to config the Interbase to really remove deleted record ?
Reply With Quote
  #4  
Old 06-06-2002, 10:20 PM
MartinOaktree MartinOaktree is offline
Member
 
Join Date: Apr 2002
Posts: 93
Default RE: InTerBase batabase file ?

Hello,


Interbase (and all other Database-Systems) use a normal file to store the Data, and the Operating-System in this case Windows (NTFS Win-NT,2000 or Dos-FAT Win 95,98,ME)cannot decrease the Filelength. A File can only added (Append) Data at the end of the File or the Data can be changed a any Position in the File.
For Example:
It is possible that You have a Databse with 10 rows, and if You delete Row 2,3 and 6 then the Filesystem do not know how to free the Space! (This is only a simple view of the problem, in the Database-file the things are much more complex).

When You insert new Rows, the free Space is used first bevor appending new Space at the end of the File.

When You make a Restore the a new File is created, and in this new File are only the requied Data. But the internal Pointers of the Data are diffrend to the previus File, but this is the Job of the Database (Interbase), You dont need to think about it while using Interbase.





Hope this helps,

Martin

Please click on Accept if this helped...
Reply With Quote
Reply

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 11:48 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.