mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2026-07-25 22:30:51 +02:00
perf(core): Make execution queries faster (#9817)
This commit is contained in:
@@ -93,6 +93,8 @@ function parseJson<T>(data: string | T): T {
|
||||
const globalConfig = Container.get(GlobalConfig);
|
||||
const dbType = globalConfig.database.type;
|
||||
const isMysql = ['mariadb', 'mysqldb'].includes(dbType);
|
||||
const isSqlite = dbType === 'sqlite';
|
||||
const isPostgres = dbType === 'postgresdb';
|
||||
const dbName = globalConfig.database[dbType === 'mariadb' ? 'mysqldb' : dbType].database;
|
||||
const tablePrefix = globalConfig.database.tablePrefix;
|
||||
|
||||
@@ -101,6 +103,8 @@ const createContext = (queryRunner: QueryRunner, migration: Migration): Migratio
|
||||
tablePrefix,
|
||||
dbType,
|
||||
isMysql,
|
||||
isSqlite,
|
||||
isPostgres,
|
||||
dbName,
|
||||
migrationName: migration.name,
|
||||
queryRunner,
|
||||
|
||||
Reference in New Issue
Block a user