|
-
Jun 27th, 2000, 05:13 PM
#1
Thread Starter
Frenzied Member
Access 97 database, VB front end
I understand that when data is deleted from the database its size remains the same until it has been compacted.
Now, my question is...
Is new data written over the deleted data or does it get appended to it?
a database:
XXXXXXXXXXXXXXXXXXXXXXXXXX
add new data(00000)
XXXXXXXXXXXXXXXXXXXXXXXXXX00000
delete some data:
XXXXXXXX________XXXXXXXXXX
compact the database:
XXXXXXXXXXXXXXXXXX
when I add new data and the database has NOT been compacted which of the following occurs?
XXXXXXXX________XXXXXXXXXX00000
or:
XXXXXXXX00000___XXXXXXXXXX
-
Jun 27th, 2000, 05:26 PM
#2
Thread Starter
Frenzied Member
Ok, so I've just found out for myself that the database continues to expand even after data has been deleted!
Apart from wastiing disk space, does leaving the database uncompacted have any other implications?
-
Jun 28th, 2000, 02:49 AM
#3
Hyperactive Member
The reason why records don't get deleted is because you would have to rebuild the database everytime you wanted to delete a record. This is a performance hit if you have to rebuild everytime. It's much easier to append and mark as deleted esp. if you have variable width fields. You can kind of think of it as your harddrive. You have to defragment the drive every so often to reduce space waste and optimize data reads. The same is true for databases. Image if your computer had to defrag everytime you deleted a file.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|