Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Increase batch size and remove transation

Maidul Islam4010817916b9
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 35d1984dec..b15b9fb834 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<void> {
const hasAuthMethodColumnAccessToken = await knex.schema.hasColumn(TableName.IdentityAccessToken, "authMethod");
@@ -71,3 +71,6 @@ export async function down(knex: Knex): Promise<void> {
});
}
}
+
+const config = {transaction: false};
+export { config };