mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
29c9ddd4a3
Summary: The main fix is in speeding up sql query that returns entries to heal. The sql query was slow in the case when there are a lot of entries for one repo and few entries for another repo. Selecting entries for smaller repo can become too slow because mysql has to scan the whole table in order to sort entries. Since ordering by id doesn't look necessary I suggest to just remove them. Also waiting for 1 minute between heal attemps is too slow There are a few more smaller fixes - replacing join_all with more efficient futures_unordered and doing batch delete of entries from the sync queue Reviewed By: aslpavel Differential Revision: D14598578 fbshipit-source-id: e8d302aab7b5a4bc16c63e14228713b75295e97a |
||
---|---|---|
.. | ||
dummy.rs | ||
healer.rs | ||
main.rs | ||
rate_limiter.rs |