Skip to content

Commit 7373575

Browse files
authored
chore(explore): Limit explore to 25 rows (#83674)
Lower explore to 25 rows.
1 parent 095dc95 commit 7373575

3 files changed

Lines changed: 10 additions & 0 deletions

File tree

‎static/app/views/explore/content.tsx‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,16 @@ function ExploreContentImpl() {
9494
? 'traces'
9595
: 'samples';
9696

97+
const limit = 25;
98+
9799
const aggregatesTableResult = useExploreAggregatesTable({
98100
query,
101+
limit,
99102
enabled: queryType === 'aggregate',
100103
});
101104
const spansTableResult = useExploreSpansTable({
102105
query,
106+
limit,
103107
enabled: queryType === 'samples',
104108
});
105109
const tracesTableResult = useExploreTracesTable({

‎static/app/views/explore/hooks/useExploreAggregatesTable.tsx‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import {useSpansQuery} from 'sentry/views/insights/common/queries/useSpansQuery'
1515

1616
interface UseExploreAggregatesTableOptions {
1717
enabled: boolean;
18+
limit: number;
1819
query: string;
1920
}
2021

@@ -26,6 +27,7 @@ export interface AggregatesTableResult {
2627

2728
export function useExploreAggregatesTable({
2829
enabled,
30+
limit,
2931
query,
3032
}: UseExploreAggregatesTableOptions): AggregatesTableResult {
3133
const {selection} = usePageFilters();
@@ -84,6 +86,7 @@ export function useExploreAggregatesTable({
8486
enabled,
8587
eventView,
8688
initialData: [],
89+
limit,
8790
referrer: 'api.explore.spans-aggregates-table',
8891
});
8992

‎static/app/views/explore/hooks/useExploreSpansTable.tsx‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {useSpansQuery} from 'sentry/views/insights/common/queries/useSpansQuery'
1313

1414
interface UseExploreSpansTableOptions {
1515
enabled: boolean;
16+
limit: number;
1617
query: string;
1718
}
1819

@@ -23,6 +24,7 @@ export interface SpansTableResult {
2324

2425
export function useExploreSpansTable({
2526
enabled,
27+
limit,
2628
query,
2729
}: UseExploreSpansTableOptions): SpansTableResult {
2830
const {selection} = usePageFilters();
@@ -70,6 +72,7 @@ export function useExploreSpansTable({
7072
enabled,
7173
eventView,
7274
initialData: [],
75+
limit,
7376
referrer: 'api.explore.spans-samples-table',
7477
allowAggregateConditions: false,
7578
});

0 commit comments

Comments
 (0)