)]}'
{"marconi/queues/storage/mongodb/messages.py":[{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"b0342b236918812e5f371b894e56e48942173cbc","unresolved":false,"context_lines":[{"line_number":90,"context_line":"]"},{"line_number":91,"context_line":""},{"line_number":92,"context_line":"BATCH_INDEX_FIELDS \u003d ["},{"line_number":93,"context_line":"    (\u0027g\u0027, 1),"},{"line_number":94,"context_line":"]"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2FFHA%3D","line":93,"updated":"2014-01-17 16:59:03.000000000","message":"out of curiosity, why g?","commit_id":"a8c47f0aab2b3c589d6f7b350c9ceb2591be2c31"},{"author":{"_account_id":6427,"name":"Kurt Griffiths","email":"kurt.griffiths@rackspace.com","username":"kgriffs"},"change_message_id":"9073b3167c15946928158f4e031e660a0271d496","unresolved":false,"context_lines":[{"line_number":90,"context_line":"]"},{"line_number":91,"context_line":""},{"line_number":92,"context_line":"BATCH_INDEX_FIELDS \u003d ["},{"line_number":93,"context_line":"    (\u0027g\u0027, 1),"},{"line_number":94,"context_line":"]"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2FErk%3D","line":93,"in_reply_to":"AAAAUH%2F%2FFHA%3D","updated":"2014-01-17 17:52:33.000000000","message":"Because \u0027b\u0027 for \u0027batch\u0027 was taken? Maybe I should rename vars from batch to group...","commit_id":"a8c47f0aab2b3c589d6f7b350c9ceb2591be2c31"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"b0342b236918812e5f371b894e56e48942173cbc","unresolved":false,"context_lines":[{"line_number":252,"context_line":""},{"line_number":253,"context_line":"            # NOTE(kgriffs): Messages must be finalized (i.e., must not"},{"line_number":254,"context_line":"            # be part of an unfinalized batch)."},{"line_number":255,"context_line":"            \u0027g\u0027: None,"},{"line_number":256,"context_line":"        }"},{"line_number":257,"context_line":""},{"line_number":258,"context_line":"        if not echo:"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2FE98%3D","line":255,"updated":"2014-01-17 16:59:03.000000000","message":"note that this won\u0027t use the index unless we make it part of the ACTIVE_INDEX_FIELDS compound index.","commit_id":"a8c47f0aab2b3c589d6f7b350c9ceb2591be2c31"},{"author":{"_account_id":6427,"name":"Kurt Griffiths","email":"kurt.griffiths@rackspace.com","username":"kgriffs"},"change_message_id":"9073b3167c15946928158f4e031e660a0271d496","unresolved":false,"context_lines":[{"line_number":252,"context_line":""},{"line_number":253,"context_line":"            # NOTE(kgriffs): Messages must be finalized (i.e., must not"},{"line_number":254,"context_line":"            # be part of an unfinalized batch)."},{"line_number":255,"context_line":"            \u0027g\u0027: None,"},{"line_number":256,"context_line":"        }"},{"line_number":257,"context_line":""},{"line_number":258,"context_line":"        if not echo:"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2FEpw%3D","line":255,"in_reply_to":"AAAAUH%2F%2FE98%3D","updated":"2014-01-17 17:52:33.000000000","message":"It should be able to use the index since we do include the other fields. We currently don\u0027t have \u0027u\u0027 in the index either, but by the time you have followed the btree down that fall, the final result set is very fast to scan. Probably a good tradeoff since adding more fields to the index slows down index updates.","commit_id":"a8c47f0aab2b3c589d6f7b350c9ceb2591be2c31"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"b0342b236918812e5f371b894e56e48942173cbc","unresolved":false,"context_lines":[{"line_number":297,"context_line":""},{"line_number":298,"context_line":"            # NOTE(kgriffs): Messages must be finalized (i.e., must not"},{"line_number":299,"context_line":"            # be part of an unfinalized batch)."},{"line_number":300,"context_line":"            \u0027g\u0027: None,"},{"line_number":301,"context_line":"        }"},{"line_number":302,"context_line":""},{"line_number":303,"context_line":"        if not include_claimed:"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2FE9o%3D","line":300,"updated":"2014-01-17 16:59:03.000000000","message":"ditto. It won\u0027t use the index","commit_id":"a8c47f0aab2b3c589d6f7b350c9ceb2591be2c31"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"256419d097297349773b9affc57412b51ffa11ea","unresolved":false,"context_lines":[{"line_number":487,"context_line":"                \u0027c\u0027: {\u0027id\u0027: None, \u0027e\u0027: now},"},{"line_number":488,"context_line":"                \u0027b\u0027: message[\u0027body\u0027] if \u0027body\u0027 in message else {},"},{"line_number":489,"context_line":"                \u0027k\u0027: next_marker + index,"},{"line_number":490,"context_line":"                \u0027g\u0027: batch_id,"},{"line_number":491,"context_line":"            }"},{"line_number":492,"context_line":""},{"line_number":493,"context_line":"            for index, message in enumerate(messages)"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2FE6Y%3D","line":490,"updated":"2014-01-17 17:01:11.000000000","message":"One more question: Can we limit the batch thing to actual batches? This will apply the batch logic to every message post regardless there\u0027s 1 or more messages. I\u0027d like to avoid the `update` op bellow for single message posting.","commit_id":"a8c47f0aab2b3c589d6f7b350c9ceb2591be2c31"},{"author":{"_account_id":6944,"name":"Allele Dev","email":"cpp.cabrera@gmail.com","username":"cpp-cabrera"},"change_message_id":"d6a37f3d3cf52da3264536873df625305b519119","unresolved":false,"context_lines":[{"line_number":487,"context_line":"                \u0027c\u0027: {\u0027id\u0027: None, \u0027e\u0027: now},"},{"line_number":488,"context_line":"                \u0027b\u0027: message[\u0027body\u0027] if \u0027body\u0027 in message else {},"},{"line_number":489,"context_line":"                \u0027k\u0027: next_marker + index,"},{"line_number":490,"context_line":"                \u0027g\u0027: batch_id,"},{"line_number":491,"context_line":"            }"},{"line_number":492,"context_line":""},{"line_number":493,"context_line":"            for index, message in enumerate(messages)"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2FEtA%3D","line":490,"in_reply_to":"AAAAUH%2F%2FE6Y%3D","updated":"2014-01-17 17:39:22.000000000","message":"Great idea, Flavio! Nice optimization for the single message case.","commit_id":"a8c47f0aab2b3c589d6f7b350c9ceb2591be2c31"},{"author":{"_account_id":6427,"name":"Kurt Griffiths","email":"kurt.griffiths@rackspace.com","username":"kgriffs"},"change_message_id":"9073b3167c15946928158f4e031e660a0271d496","unresolved":false,"context_lines":[{"line_number":487,"context_line":"                \u0027c\u0027: {\u0027id\u0027: None, \u0027e\u0027: now},"},{"line_number":488,"context_line":"                \u0027b\u0027: message[\u0027body\u0027] if \u0027body\u0027 in message else {},"},{"line_number":489,"context_line":"                \u0027k\u0027: next_marker + index,"},{"line_number":490,"context_line":"                \u0027g\u0027: batch_id,"},{"line_number":491,"context_line":"            }"},{"line_number":492,"context_line":""},{"line_number":493,"context_line":"            for index, message in enumerate(messages)"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2FEo8%3D","line":490,"in_reply_to":"AAAAUH%2F%2FEtA%3D","updated":"2014-01-17 17:52:33.000000000","message":"I thought about doing that but got lazy. Let me fix that up!","commit_id":"a8c47f0aab2b3c589d6f7b350c9ceb2591be2c31"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"8c79ea2ed9871522417b5b587ddfd1dab25a2665","unresolved":false,"context_lines":[{"line_number":253,"context_line":""},{"line_number":254,"context_line":"            # NOTE(kgriffs): Messages must be finalized (i.e., must not"},{"line_number":255,"context_line":"            # be part of an unfinalized transaction)."},{"line_number":256,"context_line":"            \u0027tx\u0027: None,"},{"line_number":257,"context_line":"        }"},{"line_number":258,"context_line":""},{"line_number":259,"context_line":"        if not echo:"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAUH%2F%2FD20%3D","line":256,"updated":"2014-01-17 20:23:28.000000000","message":"It won\u0027t use the index, but the reasoning about the remaining documents being few and the fact that it should be fast enough to filter makes sense to me. \n\nWould you mind adding a comment about that? Just so that we remember why we chose to not make it part of the compound index?","commit_id":"cf59965e3200e8181e63770c6baa889ab89551d7"},{"author":{"_account_id":6427,"name":"Kurt Griffiths","email":"kurt.griffiths@rackspace.com","username":"kgriffs"},"change_message_id":"a6b3c787a3a0218333ff31cc0f89392f1d2cc030","unresolved":false,"context_lines":[{"line_number":253,"context_line":""},{"line_number":254,"context_line":"            # NOTE(kgriffs): Messages must be finalized (i.e., must not"},{"line_number":255,"context_line":"            # be part of an unfinalized transaction)."},{"line_number":256,"context_line":"            \u0027tx\u0027: None,"},{"line_number":257,"context_line":"        }"},{"line_number":258,"context_line":""},{"line_number":259,"context_line":"        if not echo:"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAUH%2F%2FDhI%3D","line":256,"in_reply_to":"AAAAUH%2F%2FD20%3D","updated":"2014-01-17 21:26:23.000000000","message":"Done","commit_id":"cf59965e3200e8181e63770c6baa889ab89551d7"}],"marconi/queues/storage/mongodb/utils.py":[{"author":{"_account_id":6427,"name":"Kurt Griffiths","email":"kurt.griffiths@rackspace.com","username":"kgriffs"},"change_message_id":"f01f1a61951b0192505b657f6b49414055f90ed7","unresolved":false,"context_lines":[{"line_number":250,"context_line":"            return func(*args, **kwargs)"},{"line_number":251,"context_line":"        except errors.ConnectionFailure as ex:"},{"line_number":252,"context_line":"            LOG.exception(ex)"},{"line_number":253,"context_line":"            raise storage_errors.ConnectionError()"},{"line_number":254,"context_line":""},{"line_number":255,"context_line":"    return wrapper"},{"line_number":256,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2FJhg%3D","line":253,"updated":"2014-01-17 16:42:06.000000000","message":"Fixed an old bug that was blocking my tests when MARCONI_TEST_MONGODB\u003d1","commit_id":"a8c47f0aab2b3c589d6f7b350c9ceb2591be2c31"}]}
