# VACUUM - performance improvement is huge

**URL:** https://forum.duplicati.com/t/vacuum-performance-improvement-is-huge/5186
**Category:** Developer
**Created:** [November 4, 2018, 11:25am UTC](https://forum.duplicati.com/t/vacuum-performance-improvement-is-huge/5186 "2018-11-04T11:25:26Z")
**Posts on this page:** 1
**Showing post:** 21

<div class="post-metadata">

### Author: ![ts678](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@ts678](https://forum.duplicati.com/u/ts678)
#### Post date: [November 22, 2018, 2:59pm UTC](https://forum.duplicati.com/t/vacuum-performance-improvement-is-huge/5186/21 "2018-11-22T14:59:08Z")

</div>

> [@tacioandrade](#):
>
> it ran 100% without fail

Are you saying it was failing before? This is supposed to help performance (did it?), not fix things, though it might as a side effect. The 200kb job that ran 10 minutes without completing was probably a different issue. Please also run a connection test to make sure you’re not affected by the [authentication changes at Mega](https://forum.duplicati.com/t/mega-nz-error-when-check-connection/5316), and open a new support topic if it looks like the problem there has no relationship to VACUUM performance.

> [@Anderson\_Marcelo](#):
>
> In the Windows operating system I could not find ways to execute this command.  
> It looks like Sqlite is not installed.

It’s not part of Windows, and Duplicati doesn’t ship the command, only the parts it needs for its own access, including the weak database encryption that Windows users get by default. To get that might require a [build](https://forum.duplicati.com/t/database-disk-image-is-malformed/1905/20) with encryption, or use of --unencrypted-database with a normal sqlite3.exe, however my general thinking is:

To anyone who plans to vacuum Duplicati databases from anything besides the main Duplicati, please try to avoid access conflicts. Probably turning the main Duplicati off while working behind it would reduce the risks, however even better would be not bypassing (same thinking applies to manual changing of destination files). Looking at the “SQLite VACUUM” article above, it sounds like (unsurprisingly) the results of the VACUUM are based on a temporary copy of the database, meaning any backup in progress then possibly got corrupted…

---

_[View the full topic](https://forum.duplicati.com/t/vacuum-performance-improvement-is-huge/5186)._
