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
b4353ac6
Commit
b4353ac6
authored
Jan 02, 2020
by
Jens W. Klein
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reduce dup information and compress
parent
e1a789c1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
12 deletions
+5
-12
doc/guide/writing-persistent-objects.rst
doc/guide/writing-persistent-objects.rst
+5
-12
No files found.
doc/guide/writing-persistent-objects.rst
View file @
b4353ac6
...
@@ -272,20 +272,13 @@ the value ``None`` rather than a dictionary for :ref:`ghosts
...
@@ -272,20 +272,13 @@ the value ``None`` rather than a dictionary for :ref:`ghosts
Volatile Attributes
Volatile Attributes
-------------------
-------------------
Attributes with names starting with ``_v_`` are
treated as volatile.
Attributes with names starting with ``_v_`` are
volatile,
They are useful for caching data that can be computed from saved data
they are never serialized and not saved to the database.
and should not be saved
[#cache]_.
They are useful for caching data that can be computed from other data
[#cache]_.
They are never serialized and not saved to the database.
Volatile attributes are local to a specific active object in memory and
Volatile attributes are local to a specific active object in memory and
thus to a specific connection.
thus to a specific connection. If an object is removed from the connection
They should be treated as though they can disappear between transactions:
cache the volatile attribute is lost.
If an object is removed from the connection cache the volatile attribute is
gone.
Because ZODB connections can be used (in a serial fashion) from one thread
and then another, it is possible to see volatile attributes that were set
in one thread in a process appear in another thread in that process.
Setting a volatile attribute does not cause an object to be considered to
Setting a volatile attribute does not cause an object to be considered to
be modified.
be modified.
...
...
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