-
Notifications
You must be signed in to change notification settings - Fork 5.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
information: Fix issue of query information_schema.columns
cost too much memory when there are lots of tables in TiDB
#18362
Conversation
/run-all-tests |
Codecov Report
@@ Coverage Diff @@
## master #18362 +/- ##
================================================
+ Coverage 79.4194% 79.5681% +0.1487%
================================================
Files 540 540
Lines 144748 145621 +873
================================================
+ Hits 114958 115868 +910
+ Misses 20504 20491 -13
+ Partials 9286 9262 -24 |
/run-integration-copr-test |
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.
Please update the PR description. What is changed and how it works?
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
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
@wjhuang2016,Thanks for your review. |
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.
Does the major memory consumption exist in memtableRetriever.rows
? What about is.AllSchemas()
? Is there any benchmark to show the problem is eased?
Signed-off-by: crazycs520 <crazycs520@gmail.com>
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
@djshow832,Thanks for your review. |
/run-all-tests |
/rebuild |
/run-unit-test |
/run-all-tests |
/merge |
/run-all-tests |
@crazycs520 merge failed. |
/run-unit-test |
/run-cherry-picker |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
cherry pick to release-4.0 in PR #18436 |
What problem does this PR solve?
Fix issue of query
information_schema.columns
cost too many memory when there are lots of tables in TiDB.What is changed and how it works?
Related changes
pingcap/docs
/pingcap/docs-cn
:pingcap/tidb-ansible
:Check List
Tests
Side effects
Release note
information_schema.columns
cost too many memory when there are lots of tables in TiDB.