---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.6
alternate:
  - https://yandex.com/support/direct-commander-new/en/settings/db-optimization.md
  - https://yandex.com/support/direct-commander-new/ru/settings/db-optimization.md
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/support/direct-commander-new/en/llms.txt

# How to enable database optimization

Database optimization helps speed up Direct Commander. Optimization is enabled by default and starts automatically when you close the program.

To disable or re-enable optimization:


{% list tabs %}

- Windows

  1. In the program's main menu, click **File** → **Settings**.
  
  1. Disable or enable the option **Optimize database before exiting** in the **Settings** window.
  
  1. Click **Apply**.
  

- macOS

  1. Click **Direct Commander** → **Settings**.
  
  1. Disable or enable the option **Optimize database before exiting** in the **Settings** window.
  
  1. Click **Apply**.

{% endlist %}

<!-- source: en/_includes/footer.md -->
<div width="100%" align="center"> 
<br><br><br>
You can also go to 
<br>



[![](https://yastatic.net/s3/doc-binary/src/support/direct-commander-new/ru/files/log-commander-en.svg)](https://yandex.com/project/commander/new)


</div>

<!--  -->
<!-- endsource: en/_includes/footer.md -->

<!-- source: en/_includes/remove-voting-style.md -->

<!-- endsource: en/_includes/remove-voting-style.md -->
