mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 09:17:30 +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 |
||
---|---|---|
.. | ||
Cargo.toml | ||
changesets.rs | ||
filenodes.rs | ||
main.rs |