Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
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
Levin Zimmermann
neoppod
Commits
6f12fec5
Commit
6f12fec5
authored
Jul 26, 2018
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
ff2892a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
5 deletions
+19
-5
go/zodb/zodb.go
go/zodb/zodb.go
+19
-5
No files found.
go/zodb/zodb.go
View file @
6f12fec5
...
...
@@ -80,7 +80,7 @@
// return ... // handle error
// }
//
// obj.xxx
// use object.
// obj.xxx // use object.
// if ... {
// obj.xxx++ // change object.
// obj.PModify() // let persistency layer know we modified the object.
...
...
@@ -102,18 +102,32 @@
// be represented with corresponding reference between in-RAM application
// objects. If there are multiple database references to one object, it will be
// represented by several references to single in-RAM application object.
// An in-RAM application object can have reference to another in-RAM
// application object only from the same group(*).
// Reference cycles are also allowed. In general objects graph in the database
// is isomorphly mapped to application objects graph in RAM.
//
// A particular view of the database together with corresponding group of
// application objects isolated for modifications is represented by Connection.
// Connection is also sometimes called a "jar" in ZODB terminology.
//
// XXX Connection + DB.
// DB represents a handle to database at application level and contains a pool
// of connections. If application opens connection via DB.Open, the connection
// will be automatically put back into DB pool for future reuse after
// corresponding transaction is complete. DB thus provides service to maintain
// live objects cache and reuse live objects from transaction to transaction.
//
// XXX access from several threads is ok.
// Note that it is possible to have several DB handles to the same database.
// This might be useful if application accesses distinctly different set of
// objects in different transactions and knows beforehand which set it will be
// next time. Then, to avoid huge cache misses, it makes sense to keep DB
// handles opened for every possible case of application access.
//
// XXX The details of the activation protocol are documented in IPersistent
// interface which all ZODB in-RAM objects implement.
//
// All DB, Connection and object activation protocol is safe to access from
// multiple goroutines simultaneously.
//
// (*) if both objects are from the same database.
//
// Python data
//
...
...
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