-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
refactor: index mechanism to enhance overall performance #6039
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6039 +/- ##
============================================
- Coverage 56.91% 54.82% -2.10%
- Complexity 3319 3400 +81
============================================
Files 587 626 +39
Lines 18968 21032 +2064
Branches 1401 1474 +73
============================================
+ Hits 10795 11530 +735
- Misses 7594 8915 +1321
- Partials 579 587 +8 ☔ View full report in Codecov by Sentry. |
0596246
to
2aa7ddf
Compare
d211c16
to
e1296b9
Compare
Quality Gate passedIssues Measures |
ping @halo-dev/sig-halo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
application/src/test/java/run/halo/app/extension/index/query/QueryIndexViewImplTest.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: JohnNiang, ruibaby The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind improvement
/area core
/milestone 2.17.x
What this PR does / why we need it:
重构索引机制的查询和排序以提升整体性能
how to test it?
使用 postgre 数据库,初始化 Halo ,然后执行以下脚本创建 30w 文章数据进行测试:
点击展开查看 SQL
使用以下 API 查询文章
Before:
After:
Does this PR introduce a user-facing change?