> But I wonder : 
> 
> if I have a db ~ 1gb and I delete all the data in the tables ( db is
> than nearly empty )
> Issuing a vacuum command takes a long time ( several minutes ).
> Why ?
> Is there a way to "vacuum" faster ?

We found that vacuuming the database was also slow. We no longer vaccum the 
database at all, vaccumming only frees up unused pages, however new additions 
will re-use the free pages so there is no wastage from not vacuuming. If we 
need to delete all records from all tables from the database we simply delete 
the whole file from the filesystem and recreate a new empty one, this is much 
quicker.


DISCLAIMER:
This information and any attachments contained in this email message is 
intended only for the use of the individual or entity to which it is addressed 
and may contain information that is privileged, confidential, and exempt from 
disclosure under applicable law.  If the reader of this message is not the 
intended recipient, or the employee or agent responsible for delivering the 
message to the intended recipient, you are hereby notified that any 
dissemination, distribution, forwarding, or copying of this communication is 
strictly prohibited.  If you have received this communication in error, please 
notify the sender immediately by return email, and delete the original message 
immediately.

Reply via email to