Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZODB
Commits
7875e65b
Commit
7875e65b
authored
Jul 17, 2016
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved prefetch methods to separate interfaces
Cus there's no such thing as an optional method in interfaces.
parent
9b1121e1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
src/ZODB/interfaces.py
src/ZODB/interfaces.py
+12
-12
No files found.
src/ZODB/interfaces.py
View file @
7875e65b
...
...
@@ -567,15 +567,6 @@ class IStorage(Interface):
If the object id isn't in the storage, then POSKeyError is raised.
"""
def
prefetch
(
oids
,
tid
):
"""Prefetch data for the given object ids before the given tid
The oids argument is an iterable that should be iterated no
more than once.
This method is optional. It is an optimization
"""
def
loadSerial
(
oid
,
serial
):
"""Load the object record for the give transaction id
...
...
@@ -763,6 +754,16 @@ class IStorage(Interface):
"""
class
IPrefetchStorage
(
IStorage
):
def
prefetch
(
oids
,
tid
):
"""Prefetch data for the given object ids before the given tid
The oids argument is an iterable that should be iterated no
more than once.
"""
class
IMultiCommitStorage
(
IStorage
):
"""A multi-commit storage can commit multiple transactions at once.
...
...
@@ -1121,16 +1122,15 @@ class IMVCCStorage(IStorage):
A POSKeyError is raised if there is no record for the object id.
"""
class
IMVCCPrefetchStorage
(
IMVCCStorage
):
def
prefetch
(
oids
):
"""Prefetch data for the given object ids
The oids argument is an iterable that should be iterated no
more than once.
This method is optional. It is an optimization
"""
class
IStorageCurrentRecordIteration
(
IStorage
):
def
record_iternext
(
next
=
None
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment