Skip to content

Commit f545e49

Browse files
committed
fix: concurrent boolean
1 parent 7bc0844 commit f545e49

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/services/api/viewer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ export class ViewerAPI extends BaseYdbAPI {
387387
timeout?: Timeout;
388388
limit_rows?: number;
389389
output_chunk_max_size: number;
390-
concurrent_results: number;
390+
concurrent_results?: boolean;
391391
},
392392
{
393393
concurrentId,

src/store/reducers/query/query.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,8 @@ interface QueryStats {
244244
endTime?: string | number;
245245
}
246246

247-
const DEFAULT_STREAM_CHUNK_SIZE = 2;
248-
const DEFAULT_CONCURRENT_RESULTS = 1;
247+
const DEFAULT_STREAM_CHUNK_SIZE = 100;
248+
const DEFAULT_CONCURRENT_RESULTS = false;
249249

250250
export const queryApi = api.injectEndpoints({
251251
endpoints: (build) => ({
@@ -282,7 +282,7 @@ export const queryApi = api.injectEndpoints({
282282
? Number(querySettings.timeout) * 1000
283283
: undefined,
284284
output_chunk_max_size: DEFAULT_STREAM_CHUNK_SIZE,
285-
concurrent_results: DEFAULT_CONCURRENT_RESULTS,
285+
concurrent_results: DEFAULT_CONCURRENT_RESULTS || undefined,
286286
},
287287
{
288288
signal,

0 commit comments

Comments
 (0)