Skip to content

Commit

Permalink
Merge pull request #48 from zopefoundation/prefetch
Browse files Browse the repository at this point in the history
Optimizations, featuring prefetch
  • Loading branch information
jimfulton committed Jul 19, 2016
2 parents 3c52590 + 09d8df6 commit 671a5fb
Show file tree
Hide file tree
Showing 4 changed files with 287 additions and 284 deletions.
7 changes: 7 additions & 0 deletions src/ZEO/ClientStorage.py
Expand Up @@ -504,8 +504,15 @@ def load(self, oid, version=''):
return result[:2]

def loadBefore(self, oid, tid):
result = self._cache.loadBefore(oid, tid)
if result:
return result

return self._server.load_before(oid, tid)

def prefetch(self, oids, tid):
self._server.prefetch(oids, tid)

def new_oid(self):
"""Storage API: return a new object identifier.
"""
Expand Down

0 comments on commit 671a5fb

Please sign in to comment.