diff options
author | David Ripton <dripton@redhat.com> | 2012-12-13 16:10:57 -0500 |
---|---|---|
committer | David Ripton <dripton@redhat.com> | 2013-02-14 16:38:23 -0500 |
commit | 961d615ce63002d99cd31d03c8c97228d9e453d3 (patch) | |
tree | e2f2b6a6fcb13c2639bba084055caf5e5ea944ae /nova/utils.py | |
parent | 07e0c2421adf14d01389f5d6692ac2e18b8b7134 (diff) | |
download | nova-961d615ce63002d99cd31d03c8c97228d9e453d3.tar.gz nova-961d615ce63002d99cd31d03c8c97228d9e453d3.tar.xz nova-961d615ce63002d99cd31d03c8c97228d9e453d3.zip |
Allow archiving deleted rows to shadow tables, for performance.
Implements bp db-archiving
Add versions of all tables with "shadow_" prepended to their names.
These shadow tables do not have indexes.
Adds API function archive_deleted_rows, which moves some deleted
rows from production tables to the corresponding shadow tables.
(It only does a few rows, to avoid blocking the process or hitting
the database too hard. So it needs to be called regularly.)
Also adds a db archive_deleted_rows command to nova-manage.
Uses Boris Pavlovic's code for copying columns from existing tables
to new tables.
Change-Id: I7c8f2fb8794b6f9cd2531e54a1a9635010f8c97e
Diffstat (limited to 'nova/utils.py')
0 files changed, 0 insertions, 0 deletions