table designer perf improvement - add user setting for preload db model (#20608)

* add user setting for preload db model

* vbump sts

* more description
This commit is contained in:
Alan Ren
2022-09-15 14:25:36 -07:00
committed by GitHub
parent 08a9527314
commit cddfc7fd92
5 changed files with 52 additions and 2 deletions

View File

@@ -21,6 +21,7 @@ const configLogFilesRemovalLimit = 'logFilesRemovalLimit';
const extensionConfigSectionName = 'mssql';
const configLogDebugInfo = 'logDebugInfo';
const parallelMessageProcessingConfig = 'parallelMessageProcessing';
const tableDesignerPreloadConfig = 'tableDesigner.preloadDatabaseModel';
/**
*
@@ -93,6 +94,22 @@ export function getConfigTracingLevel(): string {
}
}
export function getConfigPreloadDatabaseModel(): boolean {
let config = getConfiguration();
if (config) {
return config.get<boolean>(tableDesignerPreloadConfig);
} else {
return false;
}
}
export function setConfigPreloadDatabaseModel(enable: boolean): void {
let config = getConfiguration();
if (config) {
void config.update(tableDesignerPreloadConfig, enable, true);
}
}
export async function getParallelMessageProcessingConfig(): Promise<boolean> {
const config = getConfiguration();
if (!config) {