sapling/eden/mononoke/bulkops
Alex Hornby 7d04c24a91 mononoke: limit based queries for bulkops fetch_id
Summary:
When querying for changesets in a repo,  often there are very few changesets for a repo inside a 65536 wide range of ids, which means multiple round trips to the database.

This change adds a LIMIT based mysql query that can always return up to the specified limit rows if the repo has them, and then using bounded_traversal_stream to unfold from the highest id loaded from that query to the next chunk to be loaded.

Reviewed By: StanislavGlebik

Differential Revision: D25804023

fbshipit-source-id: 46df2ea48d01bc4143d96642e45066f520faa4d6
2021-01-14 09:52:39 -08:00
..
bench mononoke: add PublicChangesetBulkFetch::fetch_ids 2021-01-11 10:55:39 -08:00
src mononoke: limit based queries for bulkops fetch_id 2021-01-14 09:52:39 -08:00
Cargo.toml mononoke: limit based queries for bulkops fetch_id 2021-01-14 09:52:39 -08:00