Skip to content

Optimization: Batching download counter updates in database #1560

@josecelano

Description

@josecelano

If persisted stats are enabled, every time a peer completes, we increase two counters in the database:

  • The global number of downloads.
  • The number of downloads per torrent.

I was wondering if we could reduce the access to the database by batching those updates. However, in the current tracker demo, the number of downloads per second is less than 1.

Image

cc @da2ce7

Metadata

Metadata

Assignees

Labels

- Admin -Enjoyable to Install and Setup our SoftwareOptimizationMake it Faster

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions