The AfpDatabaseOptimize task optimizes the internal indexing of a specified database. It permanently removes files that have been tagged for deletion using the AfpRemoveTrack task, and optimizes lookup functions for newly added tracks.
| Parameter | Description | Required |
|---|---|---|
| Type | The task name. Set to AfpDatabaseOptimize. |
Yes |
| AfpDb | The audio fingerprint database (if it is defined in the configuration file). | See Comments |
| Pack | The audio fingerprint database (if it is not defined in the configuration file). | See Comments |
| PackDir |
The path to the directory containing the database. |
See Comments |
http://localhost:15000/action=AddTask&Type=AfpDatabaseOptimize&Pack=Adverts&PackDir=C:\resourcesThis action optimizes the Adverts database that is located in C:\resources.