Skip to content
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

executor: track memory usage for nested loop apply #6171

Merged
merged 5 commits into from
Apr 2, 2018

Conversation

zz-jason
Copy link
Member

@zz-jason zz-jason commented Mar 28, 2018

track memory usage for NestedLoopApplyExec, only track innerList.

Copy link
Contributor

@XuHuaiyu XuHuaiyu left a comment

Choose a reason for hiding this comment

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

LGTM

@XuHuaiyu
Copy link
Contributor

/run-all-tests

@zz-jason zz-jason added status/LGT1 Indicates that a PR has LGTM 1. all-tests-passed labels Mar 28, 2018
@zz-jason
Copy link
Member Author

zz-jason commented Apr 2, 2018

@coocood PTAL

@coocood
Copy link
Member

coocood commented Apr 2, 2018

LGTM

@zz-jason zz-jason merged commit 83066fc into pingcap:master Apr 2, 2018
@zz-jason zz-jason deleted the dev/mem/nestedloopapply branch April 2, 2018 05:54
@zz-jason zz-jason added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Apr 2, 2018
executor/join.go Outdated
e.memTracker = memory.NewTracker(e.id, -1)
e.memTracker.AttachTo(e.ctx.GetSessionVars().StmtCtx.MemTracker)

e.innerList.GetMemTracker().SetLabel("innerList")
Copy link
Contributor

Choose a reason for hiding this comment

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

Please unify the label. s/innerList/ inner list ?
You use inner result at https://github.com/pingcap/tidb/pull/6169/files#diff-20d78b6f56a445c17a245017619f8eccR514.
Or we can put these labels together.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/LGT2 Indicates that a PR has LGTM 2.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants