)]}'
{"specs/kilo/db-archiving.rst":[{"author":{"_account_id":5538,"name":"Rushi Agrawal","email":"rushi.openstack@gmail.com","username":"rushiagr"},"change_message_id":"dc38b73d37415c6ddd786c1867efbfe2ee92f30f","unresolved":false,"context_lines":[{"line_number":21,"context_line":"A lot of unused data in the DB causes different kind of problems with"},{"line_number":22,"context_line":"performance and maintaining:"},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"* Need to filter marked as deleted rows in every query"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"* DB contains a lot of unused data in each table and operators"},{"line_number":27,"context_line":"  need to filter it if they use database directly in an emergency case"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a961159_6d0a27d3","line":24,"updated":"2014-12-24 06:27:56.000000000","message":"Better readability:\nNeed to filter \u0027marked as deleted\u0027 rows in every query","commit_id":"998f8f3d3f41b12f784c1b4f351032e6550719ce"},{"author":{"_account_id":1736,"name":"Ivan Kolodyazhny","email":"e0ne@e0ne.info","username":"e0ne"},"change_message_id":"2da652e23e80afade9ba89b4dd8eeebb83b2c9ce","unresolved":false,"context_lines":[{"line_number":21,"context_line":"A lot of unused data in the DB causes different kind of problems with"},{"line_number":22,"context_line":"performance and maintaining:"},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"* Need to filter marked as deleted rows in every query"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"* DB contains a lot of unused data in each table and operators"},{"line_number":27,"context_line":"  need to filter it if they use database directly in an emergency case"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a961159_a8f46055","line":24,"in_reply_to":"3a961159_6d0a27d3","updated":"2015-01-15 11:51:43.000000000","message":"Done","commit_id":"998f8f3d3f41b12f784c1b4f351032e6550719ce"},{"author":{"_account_id":5538,"name":"Rushi Agrawal","email":"rushi.openstack@gmail.com","username":"rushiagr"},"change_message_id":"dc38b73d37415c6ddd786c1867efbfe2ee92f30f","unresolved":false,"context_lines":[{"line_number":26,"context_line":"* DB contains a lot of unused data in each table and operators"},{"line_number":27,"context_line":"  need to filter it if they use database directly in an emergency case"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"* Storage usage unitilization (low priority)"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"Proposed change"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a961159_ad108f00","line":29,"updated":"2014-12-24 06:27:56.000000000","message":"typo: utilization, or un-utilization","commit_id":"998f8f3d3f41b12f784c1b4f351032e6550719ce"},{"author":{"_account_id":1736,"name":"Ivan Kolodyazhny","email":"e0ne@e0ne.info","username":"e0ne"},"change_message_id":"2da652e23e80afade9ba89b4dd8eeebb83b2c9ce","unresolved":false,"context_lines":[{"line_number":26,"context_line":"* DB contains a lot of unused data in each table and operators"},{"line_number":27,"context_line":"  need to filter it if they use database directly in an emergency case"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"* Storage usage unitilization (low priority)"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"Proposed change"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a961159_e8990820","line":29,"in_reply_to":"3a961159_ad108f00","updated":"2015-01-15 11:51:43.000000000","message":"Done","commit_id":"998f8f3d3f41b12f784c1b4f351032e6550719ce"},{"author":{"_account_id":5538,"name":"Rushi Agrawal","email":"rushi.openstack@gmail.com","username":"rushiagr"},"change_message_id":"dc38b73d37415c6ddd786c1867efbfe2ee92f30f","unresolved":false,"context_lines":[{"line_number":32,"context_line":"Proposed change"},{"line_number":33,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"Create shadow table for each table and copy \"deleted\" rows from main to shadow"},{"line_number":36,"context_line":"table."},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"We need to provide several method for archiving data:"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a961159_ad27af61","line":35,"updated":"2014-12-24 06:27:56.000000000","message":"Do you mean that for each \u0027delete volume\u0027 operation, copy row from one to another? Or are you saying that this should be done when the \u0027db purge\u0027 command is executed?","commit_id":"998f8f3d3f41b12f784c1b4f351032e6550719ce"},{"author":{"_account_id":1736,"name":"Ivan Kolodyazhny","email":"e0ne@e0ne.info","username":"e0ne"},"change_message_id":"2da652e23e80afade9ba89b4dd8eeebb83b2c9ce","unresolved":false,"context_lines":[{"line_number":32,"context_line":"Proposed change"},{"line_number":33,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"Create shadow table for each table and copy \"deleted\" rows from main to shadow"},{"line_number":36,"context_line":"table."},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"We need to provide several method for archiving data:"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a961159_0840145e","line":35,"in_reply_to":"3a961159_ad27af61","updated":"2015-01-15 11:51:43.000000000","message":"I mean copy row from one table to other triggered by \u0027cinder-manage archive-deleted\u0027 command","commit_id":"998f8f3d3f41b12f784c1b4f351032e6550719ce"},{"author":{"_account_id":5538,"name":"Rushi Agrawal","email":"rushi.openstack@gmail.com","username":"rushiagr"},"change_message_id":"dc38b73d37415c6ddd786c1867efbfe2ee92f30f","unresolved":false,"context_lines":[{"line_number":35,"context_line":"Create shadow table for each table and copy \"deleted\" rows from main to shadow"},{"line_number":36,"context_line":"table."},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"We need to provide several method for archiving data:"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"* archive not more than N \"deleted\" rows in each table"},{"line_number":41,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a961159_adac0fa0","line":38,"updated":"2014-12-24 06:27:56.000000000","message":"Are all these three ways going to be implemented under this spec?","commit_id":"998f8f3d3f41b12f784c1b4f351032e6550719ce"},{"author":{"_account_id":1736,"name":"Ivan Kolodyazhny","email":"e0ne@e0ne.info","username":"e0ne"},"change_message_id":"2da652e23e80afade9ba89b4dd8eeebb83b2c9ce","unresolved":false,"context_lines":[{"line_number":35,"context_line":"Create shadow table for each table and copy \"deleted\" rows from main to shadow"},{"line_number":36,"context_line":"table."},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"We need to provide several method for archiving data:"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"* archive not more than N \"deleted\" rows in each table"},{"line_number":41,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a961159_88532439","line":38,"in_reply_to":"3a961159_adac0fa0","updated":"2015-01-15 11:51:43.000000000","message":"Yes, it would be done by passing options to archive_deleted_row","commit_id":"998f8f3d3f41b12f784c1b4f351032e6550719ce"},{"author":{"_account_id":5538,"name":"Rushi Agrawal","email":"rushi.openstack@gmail.com","username":"rushiagr"},"change_message_id":"dc38b73d37415c6ddd786c1867efbfe2ee92f30f","unresolved":false,"context_lines":[{"line_number":43,"context_line":""},{"line_number":44,"context_line":"* archive all \"deleted\" data"},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"Shadowing could be started as a periodic task or admin management util."},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"Alternatives"},{"line_number":49,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a961159_4da3abb1","line":46,"updated":"2014-12-24 06:27:56.000000000","message":"Okay, got it. So we\u0027re not talking about transferring row at the time of delete. Does going this way also look like an alternative?","commit_id":"998f8f3d3f41b12f784c1b4f351032e6550719ce"},{"author":{"_account_id":1207,"name":"Duncan Thomas","email":"duncan.thomas@gmail.com","username":"duncan-thomas"},"change_message_id":"948facce0ab63adb4120c85dbe2bbb7ed426f23f","unresolved":false,"context_lines":[{"line_number":43,"context_line":""},{"line_number":44,"context_line":"* archive all \"deleted\" data"},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"Shadowing could be started as a periodic task or admin management util."},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"Alternatives"},{"line_number":49,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a961159_deabbfd3","line":46,"in_reply_to":"3a961159_4da3abb1","updated":"2014-12-24 08:38:23.000000000","message":"This method preserves the existing semantics - any busy cloud is going to have to have implemented some sort of deleted rows cleanup already, or be suffering nasty slowdown. \n\nThe aim of this just to provid a standard API for doing so, rather than the wheel being reinvented many times","commit_id":"998f8f3d3f41b12f784c1b4f351032e6550719ce"},{"author":{"_account_id":5538,"name":"Rushi Agrawal","email":"rushi.openstack@gmail.com","username":"rushiagr"},"change_message_id":"dc38b73d37415c6ddd786c1867efbfe2ee92f30f","unresolved":false,"context_lines":[{"line_number":84,"context_line":"Performance Impact"},{"line_number":85,"context_line":"------------------"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"No need to filter marked as deleted rows in every query will increase database"},{"line_number":88,"context_line":"queries performance."},{"line_number":89,"context_line":""},{"line_number":90,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a961159_cd7ddb1d","line":87,"updated":"2014-12-24 06:27:56.000000000","message":"We will still need \u0027is_deleted\u0027 field, if db purging is an asynchronous operation, no?","commit_id":"998f8f3d3f41b12f784c1b4f351032e6550719ce"},{"author":{"_account_id":1736,"name":"Ivan Kolodyazhny","email":"e0ne@e0ne.info","username":"e0ne"},"change_message_id":"2da652e23e80afade9ba89b4dd8eeebb83b2c9ce","unresolved":false,"context_lines":[{"line_number":84,"context_line":"Performance Impact"},{"line_number":85,"context_line":"------------------"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"No need to filter marked as deleted rows in every query will increase database"},{"line_number":88,"context_line":"queries performance."},{"line_number":89,"context_line":""},{"line_number":90,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a961159_6808b82d","line":87,"in_reply_to":"3a961159_5eeeef22","updated":"2015-01-15 11:51:43.000000000","message":"Thanks, Duncun","commit_id":"998f8f3d3f41b12f784c1b4f351032e6550719ce"},{"author":{"_account_id":1207,"name":"Duncan Thomas","email":"duncan.thomas@gmail.com","username":"duncan-thomas"},"change_message_id":"948facce0ab63adb4120c85dbe2bbb7ed426f23f","unresolved":false,"context_lines":[{"line_number":84,"context_line":"Performance Impact"},{"line_number":85,"context_line":"------------------"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"No need to filter marked as deleted rows in every query will increase database"},{"line_number":88,"context_line":"queries performance."},{"line_number":89,"context_line":""},{"line_number":90,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a961159_5eeeef22","line":87,"in_reply_to":"3a961159_cd7ddb1d","updated":"2014-12-24 08:38:23.000000000","message":"Better stated as \"No performance hit from filtering out a potentially massive number of deleted records on every query\"","commit_id":"998f8f3d3f41b12f784c1b4f351032e6550719ce"},{"author":{"_account_id":1736,"name":"Ivan Kolodyazhny","email":"e0ne@e0ne.info","username":"e0ne"},"change_message_id":"2da652e23e80afade9ba89b4dd8eeebb83b2c9ce","unresolved":false,"context_lines":[{"line_number":84,"context_line":"Performance Impact"},{"line_number":85,"context_line":"------------------"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"No need to filter marked as deleted rows in every query will increase database"},{"line_number":88,"context_line":"queries performance."},{"line_number":89,"context_line":""},{"line_number":90,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a961159_4e0a2521","line":87,"in_reply_to":"3a961159_cd7ddb1d","updated":"2015-01-15 11:51:43.000000000","message":"Sure, this field won\u0027t be deleted","commit_id":"998f8f3d3f41b12f784c1b4f351032e6550719ce"},{"author":{"_account_id":5538,"name":"Rushi Agrawal","email":"rushi.openstack@gmail.com","username":"rushiagr"},"change_message_id":"dc38b73d37415c6ddd786c1867efbfe2ee92f30f","unresolved":false,"context_lines":[{"line_number":85,"context_line":"------------------"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"No need to filter marked as deleted rows in every query will increase database"},{"line_number":88,"context_line":"queries performance."},{"line_number":89,"context_line":""},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"Other deployer impact"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a961159_cda4fba7","line":88,"updated":"2014-12-24 06:27:56.000000000","message":"Also, it might be worth adding that while the db purging operation runs (either as manual execution or as a periodic process), the db performance might get affected, but can be negligible","commit_id":"998f8f3d3f41b12f784c1b4f351032e6550719ce"},{"author":{"_account_id":1207,"name":"Duncan Thomas","email":"duncan.thomas@gmail.com","username":"duncan-thomas"},"change_message_id":"948facce0ab63adb4120c85dbe2bbb7ed426f23f","unresolved":false,"context_lines":[{"line_number":85,"context_line":"------------------"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"No need to filter marked as deleted rows in every query will increase database"},{"line_number":88,"context_line":"queries performance."},{"line_number":89,"context_line":""},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"Other deployer impact"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a961159_9e7db76f","line":88,"in_reply_to":"3a961159_cda4fba7","updated":"2014-12-24 08:38:23.000000000","message":"I think the purging operation will probably need to be smarter than a straight delete, because the first time it is run on an existing system that has many old records it is likely to cause significant issues.","commit_id":"998f8f3d3f41b12f784c1b4f351032e6550719ce"},{"author":{"_account_id":5538,"name":"Rushi Agrawal","email":"rushi.openstack@gmail.com","username":"rushiagr"},"change_message_id":"dc38b73d37415c6ddd786c1867efbfe2ee92f30f","unresolved":false,"context_lines":[{"line_number":140,"context_line":"References"},{"line_number":141,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":142,"context_line":""},{"line_number":143,"context_line":"* https://review.openstack.org/#/c/18493/"},{"line_number":144,"context_line":""},{"line_number":145,"context_line":"* http://lists.openstack.org/pipermail/openstack-dev/2014-March/029952.html"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a961159_6dbb07c4","line":143,"updated":"2014-12-24 06:27:56.000000000","message":"Might be better for readability if it is specified what is this gerrit review about (say, \u0027Nova\u0027s spec for db archiving\u0027)","commit_id":"998f8f3d3f41b12f784c1b4f351032e6550719ce"},{"author":{"_account_id":1736,"name":"Ivan Kolodyazhny","email":"e0ne@e0ne.info","username":"e0ne"},"change_message_id":"2da652e23e80afade9ba89b4dd8eeebb83b2c9ce","unresolved":false,"context_lines":[{"line_number":140,"context_line":"References"},{"line_number":141,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":142,"context_line":""},{"line_number":143,"context_line":"* https://review.openstack.org/#/c/18493/"},{"line_number":144,"context_line":""},{"line_number":145,"context_line":"* http://lists.openstack.org/pipermail/openstack-dev/2014-March/029952.html"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a961159_ee2591ae","line":143,"in_reply_to":"3a961159_6dbb07c4","updated":"2015-01-15 11:51:43.000000000","message":"Thanks! Done.","commit_id":"998f8f3d3f41b12f784c1b4f351032e6550719ce"},{"author":{"_account_id":5538,"name":"Rushi Agrawal","email":"rushi.openstack@gmail.com","username":"rushiagr"},"change_message_id":"dc38b73d37415c6ddd786c1867efbfe2ee92f30f","unresolved":false,"context_lines":[{"line_number":142,"context_line":""},{"line_number":143,"context_line":"* https://review.openstack.org/#/c/18493/"},{"line_number":144,"context_line":""},{"line_number":145,"context_line":"* http://lists.openstack.org/pipermail/openstack-dev/2014-March/029952.html"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a961159_adb16fe1","line":145,"updated":"2014-12-24 06:27:56.000000000","message":"ditto","commit_id":"998f8f3d3f41b12f784c1b4f351032e6550719ce"},{"author":{"_account_id":5538,"name":"Rushi Agrawal","email":"rushi.openstack@gmail.com","username":"rushiagr"},"change_message_id":"4e15b02dd4c4d77498c30ce46eff947ba47a3068","unresolved":false,"context_lines":[{"line_number":134,"context_line":"Documentation Impact"},{"line_number":135,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":136,"context_line":""},{"line_number":137,"context_line":"None"},{"line_number":138,"context_line":""},{"line_number":139,"context_line":""},{"line_number":140,"context_line":"References"}],"source_content_type":"text/x-rst","patch_set":2,"id":"3a961159_dae5d90a","line":137,"updated":"2015-01-15 10:14:51.000000000","message":"I think there will be a doc impact (admin docs).","commit_id":"d2b3876009755e20294ae2b70e39830eb7c298c6"},{"author":{"_account_id":1736,"name":"Ivan Kolodyazhny","email":"e0ne@e0ne.info","username":"e0ne"},"change_message_id":"f8508bb5f3a337dda819f3fe52f67f5e465a7e5e","unresolved":false,"context_lines":[{"line_number":134,"context_line":"Documentation Impact"},{"line_number":135,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":136,"context_line":""},{"line_number":137,"context_line":"None"},{"line_number":138,"context_line":""},{"line_number":139,"context_line":""},{"line_number":140,"context_line":"References"}],"source_content_type":"text/x-rst","patch_set":2,"id":"3a961159_35b6ee25","line":137,"in_reply_to":"3a961159_dae5d90a","updated":"2015-01-15 10:37:20.000000000","message":"Good catch! I\u0027ll do it, thanks.","commit_id":"d2b3876009755e20294ae2b70e39830eb7c298c6"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"d5d4d75525bf3fe34f30e632d70cc1d701f71cb3","unresolved":false,"context_lines":[{"line_number":59,"context_line":"* Implement migrations to store current \"deleted\" rows in shadow table"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"* Shadow tables could have blob field to store some \"deleted\" data and to not"},{"line_number":62,"context_line":"  impose restrictions on database schema changes."},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"REST API impact"},{"line_number":65,"context_line":"---------------"}],"source_content_type":"text/x-rst","patch_set":3,"id":"7a77a97e_2b2a02e8","line":62,"updated":"2016-11-22 02:47:13.000000000","message":"The problem I have with this entire approach is that it turns into a bigger and bigger nightmare as time goes on.  Tables changes, columns are added and deleted over time as releases happen.  This turns into a mess for managing the shadow tables and making sure those tables columns are migrated and deleted as well.  \n\nThis really is the job of the DB administrator, not Cinder.   When someone wants to manage deleted rows, they should be able to run a script and get snapshot of schema at that time and the deleted rows migrated to that schema snapshot.   This avoids the problem of the ever changing shadow tables to match the ever changing cinder db tables/schema.","commit_id":"4e36712c0ea46d0283578f6be9eb38381efe4b2d"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"813ed63cf2f5b650517afe3c5a173b93b16a475c","unresolved":false,"context_lines":[{"line_number":98,"context_line":"Developer impact"},{"line_number":99,"context_line":"----------------"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"None"},{"line_number":102,"context_line":""},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"Implementation"}],"source_content_type":"text/x-rst","patch_set":3,"id":"ba7be1f8_729c286b","line":101,"updated":"2015-03-02 21:59:51.000000000","message":"There definitely is an impact on developers.\n\nWhen a new table is added to Cinder, a corresponding shadow table also has to get added.\n\nWhen a table is modified, the shadow tables have to get modified.\n\nLikewise for downgrades, the new shadow table will have to get removed and the migrated columns will have to get reverted.   \n\nBasically 2x the effort for table changes in cinder.","commit_id":"4e36712c0ea46d0283578f6be9eb38381efe4b2d"}]}
