From 6e3d950e2354f9f59886bf1de97b2cca128f5629 Mon Sep 17 00:00:00 2001 From: ibuler Date: Tue, 14 Sep 2021 16:49:51 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E8=BF=81=E7=A7=BB?= =?UTF-8?q?=E8=B4=A6=E5=8F=B7=EF=BC=8C=E6=80=A7=E8=83=BD=E6=8F=90=E9=AB=98?= =?UTF-8?q?50=E5=80=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/assets/migrations/0072_historicalauthbook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/assets/migrations/0072_historicalauthbook.py b/apps/assets/migrations/0072_historicalauthbook.py index 9a55e47f3..978584824 100644 --- a/apps/assets/migrations/0072_historicalauthbook.py +++ b/apps/assets/migrations/0072_historicalauthbook.py @@ -18,7 +18,7 @@ def migrate_old_authbook_to_history(apps, schema_editor): print() while True: - authbooks = authbook_model.objects.using(db_alias).filter(is_latest=False)[:20] + authbooks = authbook_model.objects.using(db_alias).filter(is_latest=False)[:1000] if not authbooks: break historys = []