@@ -66,12 +66,12 @@ export class CompareView extends AbstractWebview<
66
66
to : CompletedLocalQueryInfo ,
67
67
selectedResultSetName ?: string ,
68
68
) {
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
+ ] ) ;
75
75
76
76
const [ fromSchemaNames , toSchemaNames ] = await Promise . all ( [
77
77
getResultSetNames (
@@ -293,16 +293,18 @@ export class CompareView extends AbstractWebview<
293
293
fromResultSetName : string ,
294
294
toResultSetName : string ,
295
295
) : 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
+ ] ) ;
306
308
307
309
// Only compare columns that have the same name
308
310
return resultsDiff ( fromResultSet , toResultSet ) ;
0 commit comments