Scheduled optimization

In the Scheduled Optimization section, you can control and monitor the scheduled automatic optimization. This can be helpful, for example, to see the the status of the optimization job or the last time that the job was run in the vault.

The Optimize Database (Thorough) operation tries to improve the performance of the vault database. The operation defragments indexes, updates database statistics, and compresses the full-text search index. For more information, see Optimizing the database.

To open the Scheduled Optimization section:

  1. Open M-Files Admin.
  2. In the left-side tree view, expand a connection to M-Files server.
  3. Expand Document Vaults.
  4. Expand a vault.
  5. Select Scheduled Optimization.
Note: The section is available in offline mode only when optimization is in progress.

Select the Optimize Database (Thorough) job to show these options in the task area: Start Job, Stop Job, and Properties.

Editing the scheduled optimization job

  1. In the Scheduled Optimization section, double-click the Optimize Database (Thorough) job.
    Result:The Scheduled Job Properties dialog is opened.
  2. Optional: Edit the description.
  3. Optional: To edit the schedule:
    1. Select Schedule.
    2. Specify the schedule with the available options.
      The schedule option When idle is not supported in M-Files.
    3. Select OK to close the Define Schedule dialog.
  4. Optional: Specify a timeout in the Automatic cancelation section.
    The available options are given in the table. They are only used for this scheduled job.
    OptionDescription
    Cancel job if not completed by this time

    Specify a weekday and time when to stop the job if it has not yet been completed.

    Continue job in next run

    When you enable this option, M-Files continues the job from the start of the step during which the last uncompleted run stopped. For example, rebuilding metadata indexes. This option is used when the previously uncompleted job re-starts according to the schedule or with the Start Job command in the task area.

  5. Select OK.