Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Monitoring] Improve indices loading against larger metricbeat-* indices #79190

Merged
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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