python-stdnet v0.6.0 Release Notes
Release Date: 2011-08-09 // over 12 years ago-
- ๐ New database schema incompatible with previous versions.
- ๐ This is a major release which brings into production a vast array of important new features including an improved database schema.
- :class:
stdnet.odm.StdModel
instances are mapped into separate redis hash tables with fields given by the model field names and values given by the instance field values. - Implemented two types of sorting:
Implicit by the :class:
stdnet.odm.Metaclass
attributeordering
. When using this route, items are stored in the database in a sorted fashion, therefore no overhead is required for the sorting step. Explicit by using thesort_by
method in a :class:stdnet.odm.query.QuerySet
object. Check the :ref:sorting <sorting>
documentation for more information. - Unique fields (fields with :attr:
stdnet.odm.Field.unique
set toTrue
) are now indexed via redis_ hash tables which maps the field value to the object id. Previously they were stored in keys. This solution reduces the memory footprint and the number of keys used. - โ Added :ref:
transaction support <model-transactions>
. This way model instances are always consistent even when redis shuts down during an update. Transactions are also useful when updating several instances at once. - โ Added :ref:
serialization utilities <serialize-models>
for saving model data in JSON or CSV format. Custom serialization algorithms can be added to the library. - ๐ Data encoders have been moved to the :mod:
stdnet.utils.encoders
module. There are four available, a dummy one (no encoding),Default
to and fromunicode
andbytes
,Bytes
to and from bytes,PythonPickle
to and from object and their pickle (bytes) representation andJson
to and from structures and bytes. - โ Added
as_string
parameter to :class:stdnet.odm.JSONField
for specifying the storage method. - ๐ Moved testing functions into the :mod:
stdnet.test
module. - โ Added
hidden
attribute to :class:stdnet.odm.Field
. Used in the search algorithm. - ๐ Reorganized and expanded documentation.
- ๐ Bug fix in :class:
stdnet.odm.PickleObjectField
field. - โ 289 regression tests with 78% coverage.
.. _vers05: