Welcome! Log In Create A New Profile

Advanced

Delete many records and make file decrease

Posted by jtadebruin 
Delete many records and make file decrease
May 20, 2020 03:34PM
Hello ,

If you delete data in a large file with millions of records, the file will not get smaller.

What method could you use to make the file smaller anyway.
An export, empty the file and then perform an import?

Who has ever done that before?

TIA
Re: Delete many records and make file decrease
May 22, 2020 07:54PM
Hi,

The database mechanism "holds" the deleted or crossed records, for several reasons (undo the deletion).
In order to delete the "deleted" records permanetly, open the HFSQL Control Center, go to the desired table, press right click and choose Optimize and repair. Then the Optimizing window opens, check "Rebuild the indexes" option, as well as "Delete the inactive records". Press "Start Optimizing".

Hope to help.

Regards

Vassilis Boutsikas
Re: Delete many records and make file decrease
May 23, 2020 06:34PM
Thanks Vassilis

You put me in the right direction. .smileys with beer

Thanks
Jan
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: