[PATCH v2] migrations: Optimize 0007 patch comment for psql

Finucane, Stephen stephen.finucane at intel.com
Fri Mar 25 22:07:09 AEDT 2016


On 24 Mar 13:20, Andy Doan wrote:
> By handling comment copying/deletion via SQL we can make migration take
> <3 minutes rather than >30minutes for big instances. The SQL is vendor
> specific, but covers the 2 DBs supported by Patchwork.
> 
> Signed-off-by: Andy Doan <andy.doan at linaro.org>
> Reviewed-by: Stephen Finucane <stephen.finucane at intel.com>
> ---
> v2: Add mysql support and use single function for migration steps

I slightly reworked the commit message to remove the psql reference...

> ---
>  .../0007_move_comment_content_to_patch_content.py  | 94 ++++++++++++++--------

Applied this...

>  patchwork/migrations/0009_add_submission_model.py  | 13 +++
>  .../0010_migrate_data_from_submission_to_patch.py  | 53 ++++--------

and dropped these as they're not relevant yet (I will update the patch
that adds them if different).

Thanks, once again :)

Stephen


More information about the Patchwork mailing list