From 4010817916b9f7960c95a5c3ba90d6209359dfba Mon Sep 17 00:00:00 2001 From: Maidul Islam Date: Sat, 2 Nov 2024 12:48:34 -0400 Subject: [PATCH] Increase batch size and remove transation --- .../20241014084900_identity-multiple-auth-methods.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/src/db/migrations/20241014084900_identity-multiple-auth-methods.ts b/backend/src/db/migrations/20241014084900_identity-multiple-auth-methods.ts index 35d1984de..b15b9fb83 100644 --- a/backend/src/db/migrations/20241014084900_identity-multiple-auth-methods.ts +++ b/backend/src/db/migrations/20241014084900_identity-multiple-auth-methods.ts @@ -2,7 +2,7 @@ import { Knex } from "knex"; import { TableName } from "../schemas"; -const BATCH_SIZE = 10_000; +const BATCH_SIZE = 30_000; export async function up(knex: Knex): Promise { const hasAuthMethodColumnAccessToken = await knex.schema.hasColumn(TableName.IdentityAccessToken, "authMethod"); @@ -71,3 +71,6 @@ export async function down(knex: Knex): Promise { }); } } + +const config = {transaction: false}; +export { config };