github bitmagnet-io/bitmagnet v0.0.3

latest releases: v0.9.5, v0.9.4, v0.9.3...
pre-release11 months ago

What's Changed

  • Fix: Add equal sign to keys options in docker-compose files by @mgdigital in #7
  • Move docker-compose comment to separate line by @mgdigital in #8
  • Add files_status field and dht_crawler.save_files_threshold configuration parameter by @mgdigital in #9

Notes on files optimisations

Some torrents contain many thousands of files, which impacts performance and uses a lot of database disk space.

This update adds more control over saving of file information for torrents.

It adds the configuration parameter dht_crawler.save_files_threshold (default 50) over which file info for a torrent will not be saved.

It contains a database migration which adds a files_status field to the torrents table. This can be:

  • no_info: We don't know anything about the files in this torrent
  • single: The torrent is a single file and there are no associated file records
  • multi: There are one or more files associated with the torrent in the torrent_files table
  • over_threshold: File information was not saved because the number of files was over the configured threshold

After the migration has been run, anyone wanting to clean there database of torrents with too many files can run the query:

delete from torrents where torrents.files_status = 'multi' and (select count(*) from torrent_files where torrent_files.info_hash = torrents.info_hash) > 50

Full Changelog: v0.0.2...v0.0.3

Don't miss a new bitmagnet release

NewReleases is sending notifications on new releases.