Don't paginate at all in experimental bqrs parsing codepath

This commit is contained in:
Jason Reed 2020-05-06 12:07:47 -04:00
Родитель 8b5bdbb6ef
Коммит a0e60fb154
1 изменённых файлов: 2 добавлений и 5 удалений

Просмотреть файл

@ -367,12 +367,9 @@ export class InterfaceManager extends DisposableObject {
if (EXPERIMENTAL_BQRS_SETTING.getValue()) {
resultSets = [];
// Setting pageSize very large for now for the sake of
// performance testing of vscode on containers.
const pageSize = 1e20;
const schemas = await this.cliServer.bqrsInfo(results.query.resultsPaths.resultsPath, pageSize);
const schemas = await this.cliServer.bqrsInfo(results.query.resultsPaths.resultsPath);
for (const schema of schemas["result-sets"]) {
const chunk = await this.cliServer.bqrsDecode(results.query.resultsPaths.resultsPath, schema.name, pageSize, 0)
const chunk = await this.cliServer.bqrsDecode(results.query.resultsPaths.resultsPath, schema.name);
const adaptedSchema = adaptSchema(schema);
const resultSet = adaptBqrs(adaptedSchema, chunk);
resultSets.push(resultSet);