Open topic with navigation

# AfpDatabaseOptimize

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.

## Parameters

Parameter | Description | Required
--- | --- | ---
Type | The task name. Set to `AfpDatabaseOptimize`. | Yes
AfpDb | The audio fingerprint database (if it is defined in the configuration file). | *
Pack | The audio fingerprint database (if it is not defined in the configuration file). | *
PackDir | The path to the directory containing the database. | *

*If the database is defined in the IDOL Speech Server configuration file, you must set the AfpDb parameter. If the database is not defined, set both the Pack and PackDir parameters instead.

## Example

    http://localhost:13000/action=AddTask&Type=AfpDatabaseOptimize&Pack=Adverts&PackDir=C:\resources

This action uses port `13000` to instruct Speech Server, which is located on the local machine, to optimize the `Adverts` database that is located in `C:\resources`.

© 2014 - 2016 Hewlett Packard Enterprise Development LP | Send documentation feedback to HPE Close We welcome your comments! To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to AutonomyTPFeedback@hpe.com. Product: Topic Title: Help Topic: Feedback:

_HP_HTML5_bannerTitle.htm