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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Nicolas Wavrant
ZODB
Commits
27ea7374
Commit
27ea7374
authored
Aug 09, 2014
by
Peter Wood
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed small grammar errors
their -> they're, it's -> its
parent
c5fd5190
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
documentation/tutorial.rst
documentation/tutorial.rst
+6
-6
No files found.
documentation/tutorial.rst
View file @
27ea7374
...
@@ -36,7 +36,7 @@ Subclassing ``Persistent`` provides a number of features:
...
@@ -36,7 +36,7 @@ Subclassing ``Persistent`` provides a number of features:
- The database will automatically track object changes made by setting
- The database will automatically track object changes made by setting
attributes [#changed]_.
attributes [#changed]_.
- Data will be saved in it
'
s own database record.
- Data will be saved in its own database record.
You can save data that doesn't subclass ``Persistent``, but it will be
You can save data that doesn't subclass ``Persistent``, but it will be
stored in the database record of whatever persistent object
stored in the database record of whatever persistent object
...
@@ -88,7 +88,7 @@ variety of storage implementations to meet different needs, from
...
@@ -88,7 +88,7 @@ variety of storage implementations to meet different needs, from
in-memory databases, to databases stored in local files, to databases
in-memory databases, to databases stored in local files, to databases
on remote database servers, and specialized databases for compression,
on remote database servers, and specialized databases for compression,
encryption, and so on. In the example above, we created a database
encryption, and so on. In the example above, we created a database
that stores it
'
s data in a local file, using the ``FileStorage``
that stores its data in a local file, using the ``FileStorage``
class.
class.
Having a storage, we then use it to instantiate a database, which we
Having a storage, we then use it to instantiate a database, which we
...
@@ -152,9 +152,9 @@ BTrees provide the core scalable containers and indexing facility for
...
@@ -152,9 +152,9 @@ BTrees provide the core scalable containers and indexing facility for
ZODB. There are different families of BTrees. The most general are
ZODB. There are different families of BTrees. The most general are
OOBTrees, which have object keys and values. There are specialized
OOBTrees, which have object keys and values. There are specialized
BTrees that support integer keys and values. Integers can be stored
BTrees that support integer keys and values. Integers can be stored
more efficiently, and compared more quickly than objects and the
ir
more efficiently, and compared more quickly than objects and the
y're
often used as application-level object identifiers. It's critical,
often used as application-level object identifiers. It's critical,
when using BTrees, to make sure that it
'
s keys have a stable ordering.
when using BTrees, to make sure that its keys have a stable ordering.
ZODB doesn't provide a query engine. The primary way to access
ZODB doesn't provide a query engine. The primary way to access
objects in ZODB is by traversing (accessing attributes or items, or
objects in ZODB is by traversing (accessing attributes or items, or
...
@@ -214,7 +214,7 @@ reference documentation contains sections with more information on the
...
@@ -214,7 +214,7 @@ reference documentation contains sections with more information on the
individual topics.
individual topics.
.. [#changed]
.. [#changed]
You can manually mark an object as changed by setting it
'
s
You can manually mark an object as changed by setting its
``_p_changed__`` attribute to ``True``. You might do this if you
``_p_changed__`` attribute to ``True``. You might do this if you
update a subobject, such as a standard Python ``list`` or ``set``,
update a subobject, such as a standard Python ``list`` or ``set``,
that doesn't subclass ``Persistent``.
that doesn't subclass ``Persistent``.
...
@@ -226,7 +226,7 @@ individual topics.
...
@@ -226,7 +226,7 @@ individual topics.
.. [#root]
.. [#root]
The root object is a fairy simple persistent object that's stored
The root object is a fairy simple persistent object that's stored
in a single database record. If you stored many objects in it,
in a single database record. If you stored many objects in it,
it
'
s database record would become very large, causing updates to be
its database record would become very large, causing updates to be
inefficient and causing memory to be used ineffeciently.
inefficient and causing memory to be used ineffeciently.
Another reason not to store items directly in the root object is
Another reason not to store items directly in the root object is
...
...
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