Skip to content

perf: optimize queryAllApps with conditional fetching logic#569

Merged
gaoxh merged 2 commits intoapache:masterfrom
xs3508198:fix0321
Mar 24, 2025
Merged

perf: optimize queryAllApps with conditional fetching logic#569
gaoxh merged 2 commits intoapache:masterfrom
xs3508198:fix0321

Conversation

@xs3508198
Copy link
Contributor

Ⅰ. Describe what this PR did

  • Modify queryAllApps to perform fuzzy search by name when provided
  • Implement fallback to fetch top 100 records when no name filter exists
  • Reduce full-table scan overhead and improve query performance

Ⅱ. Does this pull request fix one issue?

None.

Ⅲ. Why don't you add test cases (unit test/integration test)?

No need testing

Ⅳ. Describe how to verify it

Returns 100 data when appName is empty

Ⅴ. Special notes for reviews

None.

xueshan and others added 2 commits March 21, 2025 19:45
- Modify queryAllApps to perform fuzzy search by name when provided
- Implement fallback to fetch top 100 records when no name filter exists
- Reduce full-table scan overhead and improve query performance
Copy link
Contributor

@wtt40122 wtt40122 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+LGTM

Copy link
Contributor

@gaoxh gaoxh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+LGTM

@gaoxh gaoxh merged commit 6e9a429 into apache:master Mar 24, 2025
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants