sapling/cmds/blobstore_healer
Stanislau Hlebik 29c9ddd4a3 mononoke: speed up blobstore healer
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
2019-03-25 13:40:56 -07:00
..
dummy.rs wait for myrouter port to be ready 2019-03-20 05:15:35 -07:00
healer.rs mononoke: speed up blobstore healer 2019-03-25 13:40:56 -07:00
main.rs mononoke: speed up blobstore healer 2019-03-25 13:40:56 -07:00
rate_limiter.rs wait for myrouter port to be ready 2019-03-20 05:15:35 -07:00