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 (when the `AFPMode` parameter is set to the default value, `standard`). It is not supported when running the template-based approach (`AFPMode` set to `robust`).

To optimize an AFP database

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

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

  To optimize a database that is defined in the 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:15000/action=AddTask&Type=AfpDatabaseOptimize&Pack=Adverts&PackDir=C:\resources

This action optimizes 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.

© 2015-2018 EntIT Software LLC, a Micro Focus company | Send documentation feedback to Micro Focus 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 swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm