@@ -66,12 +66,12 @@ export class CompareView extends AbstractWebview<
6666 to : CompletedLocalQueryInfo ,
6767 selectedResultSetName ?: string ,
6868 ) {
69- const fromSchemas = await this . cliServer . bqrsInfo (
70- from . completedQuery . query . resultsPaths . resultsPath ,
71- ) ;
72- const toSchemas = await this . cliServer . bqrsInfo (
73- to . completedQuery . query . resultsPaths . resultsPath ,
74- ) ;
69+ const [ fromSchemas , toSchemas ] = await Promise . all ( [
70+ this . cliServer . bqrsInfo (
71+ from . completedQuery . query . resultsPaths . resultsPath ,
72+ ) ,
73+ this . cliServer . bqrsInfo ( to . completedQuery . query . resultsPaths . resultsPath ) ,
74+ ] ) ;
7575
7676 const [ fromSchemaNames , toSchemaNames ] = await Promise . all ( [
7777 getResultSetNames (
@@ -293,16 +293,18 @@ export class CompareView extends AbstractWebview<
293293 fromResultSetName : string ,
294294 toResultSetName : string ,
295295 ) : Promise < RawQueryCompareResult > {
296- const fromResultSet = await this . getResultSet (
297- fromInfo . schemas ,
298- fromResultSetName ,
299- from . completedQuery . query . resultsPaths . resultsPath ,
300- ) ;
301- const toResultSet = await this . getResultSet (
302- toInfo . schemas ,
303- toResultSetName ,
304- to . completedQuery . query . resultsPaths . resultsPath ,
305- ) ;
296+ const [ fromResultSet , toResultSet ] = await Promise . all ( [
297+ this . getResultSet (
298+ fromInfo . schemas ,
299+ fromResultSetName ,
300+ from . completedQuery . query . resultsPaths . resultsPath ,
301+ ) ,
302+ this . getResultSet (
303+ toInfo . schemas ,
304+ toResultSetName ,
305+ to . completedQuery . query . resultsPaths . resultsPath ,
306+ ) ,
307+ ] ) ;
306308
307309 // Only compare columns that have the same name
308310 return resultsDiff ( fromResultSet , toResultSet ) ;
0 commit comments