Open topic with navigation

# Optimize a Database

You can optimize a database to permanently remove tracks labeled for deletion, and to optimize lookup functions.

Note: This step is applicable only if you are using the landmark audio fingerprinting approach. It is not supported when running the template-based approach.

To optimize an AFP database

- Send an `AddTask` action to HPE IDOL Speech Server, and set the following parameters:

  `Type` | The task type. Set to `AfpDatabaseOptimize`.

  To optimize a database that is defined in the HPE IDOL Speech Server tasks configuration file, you must set the `AfpDb` parameter. If the database is not defined, set both the `Pack` and `PackDir` parameters instead.

  `AfpDb` | The name of a database that is defined in the tasks configuration file.
  `Pack` | The name of a database that is not defined in the tasks configuration file.
  `PackDir` | The path to the directory that contains the database files.

For example:

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

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

This action returns a token. You can use the token to check the task status. See Check the Status of a Task.

© 2013-2016 Hewlett Packard Enterprise Development LP | Send documentation feedback to HPE Close Send Documentation Feedback 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. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_HP_HTML5_bannerTitle.htm