History.dbf programming question

Use this forum to post questions relating to WinGate, feature requests, technical or configuration problems

Moderator: Qbik Staff

History.dbf programming question

Postby ekkas2 » Apr 20 06 2:36 pm

Hello,
here's a question for QBik programmers...
If I use history.dbf to record bandwidth usage per ip of my clients and I delete the records as I periodically parse them, I see that the dbf file size just keeps on growing, a 'limitation' of FoxPro db's....
BUT:When the file get purged on file size limit, does it pack the file or simply empties the whole file?

Very important for me as I do not want to lose any data and if the file get packed before it test for file size limit, I should be fine as most records would have been deleted by then and the file will be a (mostly) empty DB and therefore any unparsed records would remain there waiting for me...

QBik, Please respond

Thanks
Ekkas
ekkas2
 
Posts: 84
Joined: Jun 06 05 7:04 am

Postby adrien » Apr 20 06 3:49 pm

I think it gets emptied completely on purge.

Adrien
adrien
Qbik Staff
 
Posts: 5448
Joined: Sep 03 03 2:54 pm
Location: Auckland

Postby genie » Apr 20 06 6:29 pm

DBF files are not re-written when a record is removed - a record is just marked as being delete. The size of the DB file goes down only when you purge these deleted records.
genie
Qbik Staff
 
Posts: 1788
Joined: Sep 30 03 10:29 am


Return to WinGate

Who is online

Users browsing this forum: No registered users and 1 guest

cron