)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"bac5f9dd2f3c336569e46f1b305fbd69b5314a35","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Iryoung Jeong \u003ciryoung@gmail.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2012-11-15 15:38:17 +0900"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Cleaning up DB realted objects more"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This change cleans DB related more objects offensively"},{"line_number":10,"context_line":"to release memory."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"AAAAMH%2F%2F74Y%3D","line":7,"updated":"2012-11-15 06:48:55.000000000","message":"cannot understand it fully. :(","commit_id":"c00f2644d5108dfd08744be6e06f9dafd068be4e"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Iryoung Jeong \u003ciryoung@gmail.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2012-11-15 16:34:48 +0900"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Releasing more SQLAlchemy related objects in clear_db()"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This change cleans more SQLAlchemy related objects offensively"},{"line_number":10,"context_line":"to release memory in quantum.db.api.clear_db()"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"AAAAMH%2F%2F2Wo%3D","line":7,"updated":"2012-11-20 05:23:56.000000000","message":"Updates clear_db() to unregister models and close session.\n\nfixes bug 1080988\n\nThis change fixes the bug by ensuring the metadata and session objects are properly cleaned up by clear_db(). Using the proper calls reduces the memory required by unit tests.","commit_id":"dd7bc0d690a61554c29271c07bd78de22fe60d06"}],"quantum/db/api.py":[{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"unresolved":false,"context_lines":[{"line_number":87,"context_line":"def clear_db(base\u003dBASE):"},{"line_number":88,"context_line":"    global _ENGINE, _MAKER"},{"line_number":89,"context_line":"    assert _ENGINE"},{"line_number":90,"context_line":"    for table in reversed(base.metadata.sorted_tables):"},{"line_number":91,"context_line":"        try:"},{"line_number":92,"context_line":"            s \u003d _ENGINE.execute(table.delete())"},{"line_number":93,"context_line":"        except Exception as e:"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAMH%2F%2F2Xc%3D","line":90,"updated":"2012-11-20 05:23:56.000000000","message":"calling unregister_models(base) calls drop_all() which is more efficient than lines 90-96.  You can safely remove them.","commit_id":"dd7bc0d690a61554c29271c07bd78de22fe60d06"}]}
