diff options
author | Fabio Ponciroli <ponch78@gmail.com> | 2021-06-03 16:15:17 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2021-06-25 17:57:59 +0200 |
commit | 6976a30f443ece4815a977b0a5a897c0236018f7 (patch) | |
tree | 24309a81a94c81456c96fd888e009daa10f77266 /Documentation/config-options.md | |
parent | f598e69529e0a1864e8224265ed82326f2a296f5 (diff) | |
download | jgit-6976a30f443ece4815a977b0a5a897c0236018f7.tar.gz jgit-6976a30f443ece4815a977b0a5a897c0236018f7.zip |
searchForReuse might impact performance in large repositories
The search for reuse phase for *all* the objects scans *all*
the packfiles, looking for the best candidate to serve back to the
client.
This can lead to an expensive operation when the number of
packfiles and objects is high.
Add parameter "pack.searchForReuseTimeout" to limit the time spent
on this search.
Change-Id: I54f5cddb6796fdc93ad9585c2ab4b44854fa6c48
Diffstat (limited to 'Documentation/config-options.md')
-rw-r--r-- | Documentation/config-options.md | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Documentation/config-options.md b/Documentation/config-options.md index a9ca48c6a6..19bcc33523 100644 --- a/Documentation/config-options.md +++ b/Documentation/config-options.md @@ -102,6 +102,7 @@ Proxy configuration uses the standard Java mechanisms via class `java.net.ProxyS | `prunePreserved`, only via API of PackConfig | `false` | ⃞ | Whether to remove preserved pack files in a preserved directory. | | `pack.reuseDeltas` | `true` |⃞ | Whether to reuse deltas existing in repository. | | `pack.reuseObjects` | `true` | ⃞ | Whether to reuse existing objects representation in repository. | +| `pack.searchForReuseTimeout` | | ⃞ | Search for reuse phase timeout. Expressed as a `Duration`, i.e.: `50sec`. | | `pack.singlePack` | `false` | ⃞ | Whether all of `refs/*` should be packed in a single pack. | | `pack.threads` | `0` (auto-detect number of processors) | ✅ | Number of threads to use for delta compression. | | `pack.waitPreventRacyPack` | `false` | ⃞ | Whether we wait before opening a newly written pack to prevent its lastModified timestamp could be racy. | |