Skip to content

Commit

Permalink
adding size to find calls
Browse files Browse the repository at this point in the history
  • Loading branch information
jgowdyelastic committed Oct 12, 2021
1 parent 9cc98e4 commit 358289c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion x-pack/plugins/ml/public/application/util/index_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ let indexPatternsContract: DataViewsContract | null = null;
export async function loadIndexPatterns(indexPatterns: DataViewsContract) {
indexPatternsContract = indexPatterns;
const dataViewsContract = getDataViews();
indexPatternCache = await dataViewsContract.find('*');
indexPatternCache = await dataViewsContract.find('*', 10000);
return indexPatternCache;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ async function loadRollupIndexPattern(
indexPattern: string,
dataViewsService: DataViewsService
): Promise<DataView | null> {
const resp = await dataViewsService.find('*');
const resp = await dataViewsService.find('*', 10000);
const obj = resp.find(
(dv) => dv.type === 'rollup' && dv.title === indexPattern && dv.typeMeta !== undefined
);
Expand Down

0 comments on commit 358289c

Please sign in to comment.