<< Click to Display Table of Contents >> OptimizeDatabase |
Runs a SQLite VACUUM operation on the PDQ Inventory database to reclaim unused disk space and improve query performance. This stops the PDQ Inventory background service, optimizes the database, then restarts the service.
NOTE: If the PDQ Inventory console is open, you will be prompted to close it before the optimization begins. If the background service is running, you will be prompted to stop it.
PDQInventory OptimizeDatabase [-Wait]
Parameter |
Required |
Description |
|---|---|---|
-Wait |
No |
When specified, pauses and waits for the user to press Enter after optimization completes. Useful when running from a shortcut or batch file where you want the window to stay open. |
Optimize the database:
PDQInventory OptimizeDatabase
Optimize the database and keep the window open when done:
PDQInventory OptimizeDatabase -Wait
© 2026 PDQ.com Corporation. All rights reserved.
PDQ.com is a trademark of PDQ.com Corporation. All other product and company names are the property of their respective owners.
Help Version: 20.0.22.0