Commit ee88b961 authored by Aurel's avatar Aurel

request 100 oid at a time instead of 25 to decrease number of packets

sent, note that 100 is the default in ZEO


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@588 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 6d0be8f1
......@@ -336,7 +336,7 @@ class Application(object):
# we manage a list of oid here to prevent
# from asking too many time new oid one by one
# from master node
self._askPrimary(protocol.askNewOIDs(25))
self._askPrimary(protocol.askNewOIDs(100))
if len(self.new_oid_list) <= 0:
raise NEOStorageError('new_oid failed')
return self.new_oid_list.pop()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment