collection-status slower with full cache than with empty cache
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Duplicity |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Running `duply duplitest status` (which runs duplicity collection-status) takes a bit over 2 minutes, removing the files from the cache directory and running `duply duplitest status` again, it only takes one second to run. I would consider the opposite effect to be logical, e.g. having to download all the cache files from the backup target location (which is in file:///tmp, btw), but it seems, duplicity simply skips over the part where it looks into the manifest files etc, if they aren't there and just enumerates the files from the outside (looking at the target location) to create the collection status.
Two logs are attached as test-cases and proofs.
The tested version is 0.7.12 on FreeBSD 10.3
(Naturally, The attachments are anonymized :D)
Changed in duplicity: | |
status: | Invalid → In Progress |
assignee: | nobody → Kenneth Loafman (kenneth-loafman) |
importance: | Undecided → Medium |
milestone: | none → 0.7.14 |
summary: |
- --name option does extra/unnecessary recursion in directory to find - manifest files (slowing down performance) + collection-status slower with full cache than with empty cache |
description: | updated |
description: | updated |
Changed in duplicity: | |
status: | Fix Committed → Fix Released |
What you are seeing is the difference between having the cache already synchronized versus having to resync the local cache from the remote store. It has nothing to do with the cache name.