You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: [torrust#469] import torrent statistics in batches
Instead of importing all torrents statistics from the tracker every
hour, this change imports 50 torrents every 100 milliseconds.
Batches only include torrents that have not been updated in the last
hour (or whatever is the `torrent_info_update_interval` value in the
configuration).
This change avoid loading the whole set of torrents in memory every time
the importation starts.
In the future, It could also allow to handle the nunber of request per
second to the tracker (statically, from config value or dinamically,
depending on the tracler load).
Althought it saves memory, it runs more SQL queries to get the list of
torrents pending to update.
debug!(target:LOG_TARGET,"Importing torrents statistics not updated since {} limited to a maximum of {} torrents ...", datetime.to_string().yellow(), limit.to_string().yellow());
0 commit comments