# SyncDatabase

When you train Media Server, your training database is updated with new training data. However, analysis tasks do not use this training data until Media Server has synchronized with the database.

This parameter specifies whether Media Server synchronizes with the database before beginning the analysis task. To ensure that object detection uses the latest training that is available when the `process` action begins, set this parameter to `TRUE`.

TIP: You can configure Media Server to synchronize with the database on a schedule by setting the parameter ScheduledSync to `periodic`. However, setting `SyncDatabase=TRUE` ensures that synchronization is complete before analysis starts.

TIP: You can force Media Server to synchronize with the database by running the action SyncObjectClasses.

TIP: If you are processing a long video file or a stream, and you want to synchronize with the latest training while processing continues, use the action SyncObjectClasses or set the configuration parameter ScheduledSync to `periodic`.

To start analysis without synchronizing with the latest training, set this parameter to `FALSE`. Synchronizing with the latest training might not be necessary if you have already run the action SyncObjectClasses (and waited for it to complete), or if there have been no changes to the training data.

Type: | Boolean
Default: | True
Required: | No
Configuration Section: | TaskName
Example: | `SyncDatabase=TRUE`
See Also: | ScheduledSync SyncInterval

_FT_HTML5_bannerTitle.htm