Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread Empty Table <tableName> should get rid of disk space used by table
Sun, Jun 28 2015 2:33 PMPermanent Link

Barry

The Empty Table <TableName> should execute an Optimize <TableName> so it gets rid of the disk space occupied by the table.

Quite often I have large tables that have a million rows. When I remove all of the rows from the table it would be nice if EDB cleaned up the file size so the drive backups are smaller. As it stands, the corresponding files for the table:  .EDBTbl, .EDBIdx, and .EDBBlb are still occupying a huge amount of disk space, around 500MB each.

I know I can write my own EmptyTable stored procedure to do it, but it would be nice if EDB did it automatically. I see no point in keeping this disk space around when the table is empty.

Thanks

Barry
Sun, Jun 28 2015 3:58 PMPermanent Link

Barry

Never mind.

"Empty Table" does indeed get rid of the disk space occupied by the table. I was looking at the wrong data directory of a duplicate database.

Barry
[<oops>]
Mon, Jun 29 2015 2:46 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Barry

Thank you for this second post

1) it gave me a good chuckle - nice way to start Monday
2) It saved me trying to figure out just when Tim changed things (EMPTY TABLE is essentially DeleteFile)


Roy Lambert
Image