foreign key loading optimalization #451

This commit is contained in:
Jan Prochazka
2023-01-21 09:34:29 +01:00
parent 451f671426
commit 3dfae351a6
7 changed files with 4 additions and 42 deletions

View File

@@ -140,9 +140,7 @@ const postgresDriverBase = {
return connection;
},
__analyserInternals: {
refTableCond: '',
},
__analyserInternals: {},
getNewObjectTemplates() {
return [
@@ -212,9 +210,7 @@ const cockroachDriver = {
dropColumnDependencies: ['primaryKey', 'dependencies'],
dropPrimaryKey: false,
},
__analyserInternals: {
refTableCond: 'and fk.referenced_table_name = ref.table_name',
},
__analyserInternals: {},
};
/** @type {import('dbgate-types').EngineDriver} */
@@ -225,7 +221,6 @@ const redshiftDriver = {
stringAgg: false,
},
__analyserInternals: {
refTableCond: '',
skipIndexes: true,
},
engine: 'redshift@dbgate-plugin-postgres',