Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Bump to version 1.2.0 and changelog update

  • Loading branch information...
commit d832833651f16513438c40a0754dc8059663447d 1 parent 009d27d
@thobbs thobbs authored
View
59 CHANGES
@@ -1,3 +1,62 @@
+Changes in Version 1.2.0
+
+ This should be a fairly smooth upgrade from pycassa 1.1. The
+ primary changes that may introduce minor incompatibilities are
+ the changes to ColumnFamilyMap and the automatic skipping of
+ "ghost ranges" in .ColumnFamily.get_range().
+
+ Features
+
+ * Add ConnectionPool.fill()
+ * Add FloatType, DoubleType, DateType, and BooleanType support.
+ * Add CompositeType support for static composites. See "Composite Types"
+ for more details.
+ * Add timestamp, ttl to ColumnFamilyMap.insert() params
+ * Support variable-length integers with IntegerType. This allows more
+ space-efficient small integers as well as integers that exceed the size
+ of a long.
+ * Make ColumnFamilyMap a subclass of ColumnFamily instead of using one
+ as a component. This allows all of the normal adjustments normally done
+ to a ColumnFamily to be done to a ColumnFamilyMap instead. See "Class
+ Mapping with Column Family Map" for examples of using the new version.
+ * Expose the following ConnectionPool attributes, allowing them to be
+ altered after creation: max_overflow, pool_timeout, recycle,
+ max_retries, and logging_name. Previously, these were all supplied as
+ constructor arguments. Now, the preferred way to set them is to alter
+ the attributes after creation. (However, they may still be set in the
+ constructor by using keyword arguments.)
+ * Automatically skip "ghost ranges" in ColumnFamily.get_range().
+ Rows without any columns will not be returned by the generator,
+ and these rows will not count towards the supplied row_count.
+
+ Bug Fixes
+
+ * Add connections to ConnectionPool more readily when prefill is False.
+ Before this change, if the ConnectionPool was created with prefill=False,
+ connections would only be added to the pool when there was concurrent
+ demand for connections. After this change, if prefill=False and
+ pool_size=N, the first N operations will each result in a new connection
+ being added to the pool.
+ * Close connection and adjust the ConnectionPool‘s connection count after a
+ TApplicationException. This exception generally indicates programmer error,
+ so it’s not extremely common.
+ * Handle typed keys that evaluate to False
+
+ Deprecated
+
+ * ConnectionPool.recreate()
+ * ConnectionPool.status()
+
+ Miscellaneous
+
+ * Better failure messages for ConnectionPool failures
+ * More efficient packing and unpacking
+ * More efficient multi-column inserts in ColumnFamily.insert() and
+ ColumnFamily.batch_insert()
+ * Prefer Python 2.7’s collections.OrderedDict over the bundled version when
+ available
+
+
Changes in Version 1.1.1
Features
View
2  doc/assorted/column_family_map.rst
@@ -1,3 +1,5 @@
+.. _column-family-map:
+
Class Mapping with Column Family Map
====================================
You can map existing classes to column families using
View
68 doc/changelog.rst
@@ -1,6 +1,74 @@
Changelog
=========
+Changes in Version 1.2.0
+------------------------
+This should be a fairly smooth upgrade from pycassa 1.1. The
+primary changes that may introduce minor incompatibilities are
+the changes to :class:`.ColumnFamilyMap` and the automatic
+skipping of "ghost ranges" in :meth:`.ColumnFamily.get_range()`.
+
+Features
+~~~~~~~~
+- Add :meth:`.ConnectionPool.fill()`
+- Add :class:`~.FloatType`, :class:`~.DoubleType`,
+ :class:`~.DateType`, and :class:`~.BooleanType` support.
+- Add :class:`~.CompositeType` support for static composites.
+ See :ref:`composite-types` for more details.
+- Add `timestamp`, `ttl` to :meth:`.ColumnFamilyMap.insert()`
+ params
+- Support variable-length integers with :class:`~.IntegerType`.
+ This allows more space-efficient small integers as well as
+ integers that exceed the size of a long.
+- Make :class:`~.ColumnFamilyMap` a subclass of
+ :class:`~.ColumnFamily` instead of using one as a component.
+ This allows all of the normal adjustments normally done
+ to a :class:`~.ColumnFamily` to be done to a :class:`~.ColumnFamilyMap`
+ instead. See :ref:`column-family-map` for examples of
+ using the new version.
+- Expose the following :class:`~.ConnectionPool` attributes,
+ allowing them to be altered after creation:
+ :attr:`~.ConnectionPool.max_overflow`, :attr:`~.ConnectionPool.pool_timeout`,
+ :attr:`~.ConnectionPool.recycle`, :attr:`~.ConnectionPool.max_retries`,
+ and :attr:`~.ConnectionPool.logging_name`.
+ Previously, these were all supplied as constructor arguments.
+ Now, the preferred way to set them is to alter the attributes
+ after creation. (However, they may still be set in the
+ constructor by using keyword arguments.)
+- Automatically skip "ghost ranges" in :meth:`ColumnFamily.get_range()`.
+ Rows without any columns will not be returned by the generator,
+ and these rows will not count towards the supplied `row_count`.
+
+Bug Fixes
+~~~~~~~~~
+- Add connections to :class:`~.ConnectionPool` more readily
+ when `prefill` is ``False``.
+ Before this change, if the ConnectionPool was created with
+ ``prefill=False``, connections would only be added to the pool
+ when there was concurrent demand for connections.
+ After this change, if ``prefill=False`` and ``pool_size=N``, the
+ first `N` operations will each result in a new connection
+ being added to the pool.
+- Close connection and adjust the :class:`~.ConnectionPool`'s
+ connection count after a :exc:`.TApplicationException`. This
+ exception generally indicates programmer error, so it's not
+ extremely common.
+- Handle typed keys that evaluate to ``False``
+
+Deprecated
+~~~~~~~~~~
+- :meth:`.ConnectionPool.recreate()`
+- :meth:`.ConnectionPool.status()`
+
+Miscellaneous
+~~~~~~~~~~~~~
+- Better failure messages for :class:`~.ConnectionPool` failures
+- More efficient packing and unpacking
+- More efficient multi-column inserts in :meth:`.ColumnFamily.insert()`
+ and :meth:`.ColumnFamily.batch_insert()`
+- Prefer Python 2.7's :class:`collections.OrderedDict` over the
+ bundled version when available
+
Changes in Version 1.1.1
------------------------
View
4 doc/conf.py
@@ -33,9 +33,9 @@
# built documents.
#
# The short X.Y version.
-version = '1.1'
+version = '1.2'
# The full version, including alpha/beta/rc tags.
-release = '1.1.1'
+release = '1.2.0'
# List of documents that shouldn't be included in the build.
unused_docs = []
View
2  setup.py
@@ -16,7 +16,7 @@
from setuptools import setup
from distutils.cmd import Command
-__version_info__ = (1, 1, 1)
+__version_info__ = (1, 2, 0)
__version__ = '.'.join([str(v) for v in __version_info__])
long_description = """pycassa is a python client library for Apache Cassandra with the following features:
Please sign in to comment.
Something went wrong with that request. Please try again.