Skip to content

Commit

Permalink
fix: remove prefetching on spans table (#2555)
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunlalb committed Dec 4, 2023
1 parent e743904 commit cb8cc71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ describe('Explorer component', () => {
expect.objectContaining({
requestType: SPANS_GQL_REQUEST,
filters: [],
limit: 100,
limit: 50,
}),
undefined,
);
Expand Down Expand Up @@ -310,7 +310,7 @@ describe('Explorer component', () => {
2,
expect.objectContaining({
requestType: SPANS_GQL_REQUEST,
limit: 100,
limit: 50,
filters: [new GraphQlFieldFilter({ key: 'first' }, GraphQlOperatorType.Equals, 'foo')],
}),
undefined,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class SpansTableDataSourceModel extends TableDataSourceModel {
properties: request.columns
.filter(column => column.visible || this.mandatoryColumns.includes(column.id))
.map(column => column.specification),
limit: request.position.limit * 2, // Prefetch 2 pages
limit: request.position.limit,
offset: request.position.startIndex,
sort: request.sort && {
direction: request.sort.direction,
Expand Down

0 comments on commit cb8cc71

Please sign in to comment.