mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
e308419b58
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 |
||
---|---|---|
.. | ||
admin | ||
backfill_derived_data | ||
benchmark_storage_config | ||
blobrepo_checker | ||
blobstore_healer | ||
bonsai_verify | ||
manual_scrub | ||
tests | ||
aliasverify.rs | ||
backfill_git_mapping.rs | ||
benchmark_filestore.rs | ||
blobimport.rs | ||
configlint.rs | ||
dumprev.rs | ||
idxdump.rs | ||
lfs_import.rs | ||
populate_healer.rs | ||
rechunker.rs | ||
revlogrepo.rs | ||
statistics_collector.rs | ||
upload_globalrevs.rs |