beetbox / beetbox/beets

Speed up write?

Open
#5,029 13 comments 1 reaction 0 assignees View on GitHub
performance
Dominant language
Python
Stars
15.7k
Forks
2.1k
Avg merge
4d 21h
Merged PRs (30d)
31

Description

### Proposed solution

Speed up write speed via network.

Right now beets writes the same file twice (tested on `.flac` but probably it's true for all format). The first time it had happened when files is moved into library. It works as expected via temporarry name. Anyway, when it edits tags, it reuploads the whole file with edited tags.

I see this behaviour quite well when upload heavy `.flac` into library via WebDAV by investigating `.davfs.*` files in the distination folder via SSH to the NAS.

Rework editing of tags from save full file, into append or truncate and replacing only tag part at the end of the file.

Contributor guide

Open the contributing guide

Research direction

Reproduce the write behavior with a heavy .flac transferred through WebDAV, inspecting the .davfs.* files on the NAS as described. Trace beets' tag-editing path and determine whether the format permits replacing only the tag portion; done means tag edits no longer reupload the entire file while preserving correct files and tags.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, performance
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.