##// END OF EJS Templates
exchangev2: honor server advertised manifestdata recommended batch size...
Gregory Szorc -
r40209:b797150a default
parent child Browse files
Show More
@@ -268,10 +268,9 b' def _fetchmanifests(repo, tr, remote, ma'
268 progress = repo.ui.makeprogress(_('manifests'), unit=_('chunks'),
268 progress = repo.ui.makeprogress(_('manifests'), unit=_('chunks'),
269 total=len(fetchnodes))
269 total=len(fetchnodes))
270
270
271 # Fetch manifests 10,000 per command.
271 commandmeta = remote.apidescriptor[b'commands'][b'manifestdata']
272 # TODO have server advertise preferences?
272 batchsize = commandmeta.get(b'recommendedbatchsize', 10000)
273 # TODO make size configurable on client?
273 # TODO make size configurable on client?
274 batchsize = 10000
275
274
276 # We send commands 1 at a time to the remote. This is not the most
275 # We send commands 1 at a time to the remote. This is not the most
277 # efficient because we incur a round trip at the end of each batch.
276 # efficient because we incur a round trip at the end of each batch.
General Comments 0
You need to be logged in to leave comments. Login now