diff options
author | Flaper Fesp <flaper87@gmail.com> | 2012-09-12 22:06:52 +0200 |
---|---|---|
committer | Flaper Fesp <flaper87@gmail.com> | 2012-09-12 22:06:52 +0200 |
commit | 19887efbc9b338ae03937e783697eaf8fc92dd7c (patch) | |
tree | 31b82ecc3da76df30f0f0293ce846be86a07a965 /kombu/transport/mongodb.py | |
parent | b3730169af8f23858aa20f0a8b633ef28d0c62c0 (diff) | |
download | kombu-19887efbc9b338ae03937e783697eaf8fc92dd7c.tar.gz |
#158: Added background to the recently added compound index and some notes to the changelog
Diffstat (limited to 'kombu/transport/mongodb.py')
-rw-r--r-- | kombu/transport/mongodb.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kombu/transport/mongodb.py b/kombu/transport/mongodb.py index 90a048c9..aeaceefb 100644 --- a/kombu/transport/mongodb.py +++ b/kombu/transport/mongodb.py @@ -144,7 +144,7 @@ class Channel(virtual.Channel): # database.authenticate(conninfo.userid, conninfo.password) self.db = database col = database.messages - col.ensure_index([('queue', 1), ('_id', 1)]) + col.ensure_index([('queue', 1), ('_id', 1)], background=True) if 'messages.broadcast' not in database.collection_names(): capsize = conninfo.transport_options.get( |