@@ -68,12 +68,12 @@ export class CompareView extends AbstractWebview<
6868 to : CompletedLocalQueryInfo ,
6969 selectedResultSetName ?: string ,
7070 ) {
71- const fromSchemas = await this . cliServer . bqrsInfo (
72- from . completedQuery . query . resultsPaths . resultsPath ,
73- ) ;
74- const toSchemas = await this . cliServer . bqrsInfo (
75- to . completedQuery . query . resultsPaths . resultsPath ,
76- ) ;
71+ const [ fromSchemas , toSchemas ] = await Promise . all ( [
72+ this . cliServer . bqrsInfo (
73+ from . completedQuery . query . resultsPaths . resultsPath ,
74+ ) ,
75+ this . cliServer . bqrsInfo ( to . completedQuery . query . resultsPaths . resultsPath ) ,
76+ ] ) ;
7777
7878 const [ fromSchemaNames , toSchemaNames ] = await Promise . all ( [
7979 getResultSetNames (
@@ -296,16 +296,18 @@ export class CompareView extends AbstractWebview<
296296 fromResultSetName : string ,
297297 toResultSetName : string ,
298298 ) : Promise < RawQueryCompareResult > {
299- const fromResultSet = await this . getResultSet (
300- fromInfo . schemas ,
301- fromResultSetName ,
302- from . completedQuery . query . resultsPaths . resultsPath ,
303- ) ;
304- const toResultSet = await this . getResultSet (
305- toInfo . schemas ,
306- toResultSetName ,
307- to . completedQuery . query . resultsPaths . resultsPath ,
308- ) ;
299+ const [ fromResultSet , toResultSet ] = await Promise . all ( [
300+ this . getResultSet (
301+ fromInfo . schemas ,
302+ fromResultSetName ,
303+ from . completedQuery . query . resultsPaths . resultsPath ,
304+ ) ,
305+ this . getResultSet (
306+ toInfo . schemas ,
307+ toResultSetName ,
308+ to . completedQuery . query . resultsPaths . resultsPath ,
309+ ) ,
310+ ] ) ;
309311
310312 return resultsDiff ( fromResultSet , toResultSet ) ;
311313 }
0 commit comments