From 2e693023bd8f22a0b90015a0c3e9b2bbb592b19e Mon Sep 17 00:00:00 2001 From: Tyler Hobbs Date: Wed, 7 May 2014 15:30:25 -0500 Subject: [PATCH] Add comment about compression ordering --- cassandra/connection.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cassandra/connection.py b/cassandra/connection.py index d6de8c68..2ec99e41 100644 --- a/cassandra/connection.py +++ b/cassandra/connection.py @@ -36,6 +36,9 @@ from cassandra.util import OrderedDict log = logging.getLogger(__name__) +# We use an ordered dictionary and specifically add lz4 before +# snappy so that lz4 will be preferred. Changing the order of this +# will change the compression preferences for the driver. locally_supported_compressions = OrderedDict() try: