sapling/eden/mononoke/repo_client
Stanislau Hlebik e308419b58 RFC mononoke: limit number of filenodes get_all_filenodes_maybe_stale
Summary:
In a repository with files with large histories we run into a lot of SqlTimeout
errors while fetching file history to serve getpack calls. However fetching the
whole file history is not really necessary - client knows how to work with
partial history i.e. if client misses some portion of history then it would
just fetch it on demand.

This diff adds way to add a limit on how many entries were going to be fetched, and if more entries were fetched then we return FilenodeRangeResult::TooBig. The downside of this diff is that we'd have to do more sequential database
queries.

Reviewed By: krallin

Differential Revision: D23025249

fbshipit-source-id: ebed9d6df6f8f40e658bc4b83123c75f78e70d93
2020-08-12 14:33:43 -07:00
..
getbundle_response allow pulling with empty 'common' set 2020-07-30 20:00:41 -07:00
mononoke_repo Regenerate all Cargo.tomls after upgrade to futures 0.3.5 2020-07-06 20:49:43 -07:00
obsolete move all mercurial content generation logic to blobrepo_hg 2020-06-22 07:29:19 -07:00
remotefilelog RFC mononoke: limit number of filenodes get_all_filenodes_maybe_stale 2020-08-12 14:33:43 -07:00
repo_read_write_status Regenerate all Cargo.tomls after upgrade to futures 0.3.5 2020-07-06 20:49:43 -07:00
reverse_filler_queue unbundle: save infinitepush unbundles into reversefillerqueue 2020-05-07 05:12:14 -07:00
schemas reversefillerqueue: change bundle from varchar to varbinary 2020-05-20 07:34:22 -07:00
scribe_commit_queue mononoke: add Scribe 2020-06-29 12:15:22 -07:00
src mononoke: use WarmBookmarkCache in repo_client 2020-07-31 03:09:24 -07:00
streaming_clone Regenerate all Cargo.tomls after upgrade to futures 0.3.5 2020-07-06 20:49:43 -07:00
unbundle push_redirector: add contexts 2020-08-03 13:00:23 -07:00
wirepack mononoke/repo_client: make repo_client buildable in OSS 2020-05-06 06:11:02 -07:00
Cargo.toml mononoke: use WarmBookmarkCache in repo_client 2020-07-31 03:09:24 -07:00