Skip to content

Commit

Permalink
Improve indices loading against larger metricbeat-* indices
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisronline committed Oct 1, 2020
1 parent cb0e650 commit 6f3fa1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ export class MonitoringViewBaseEuiTableController extends MonitoringViewBaseCont
});
};

this.updateData();
// For pages where we do not fetch immediately, we want to fetch after pagination is applied
args.fetchDataImmediately === false && this.updateData();
}

setPagination(page) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export function buildGetIndicesQuery(
inner_hits: {
name: 'earliest',
size: 1,
sort: [{ timestamp: 'asc' }],
sort: [{ timestamp: { order: 'asc', unmapped_type: 'long' } }],
},
},
sort: [{ timestamp: { order: 'desc', unmapped_type: 'long' } }],
Expand Down

0 comments on commit 6f3fa1d

Please sign in to comment.