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 attribute ordering. 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 the sort_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 to True) 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 from unicode and bytes, Bytes to and from bytes, PythonPickle to and from object and their pickle (bytes) representation and Json 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: