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

profiling storage detail #2754

Merged

Conversation

cangfengzhs
Copy link
Contributor

@cangfengzhs cangfengzhs commented Aug 30, 2021

image

@cangfengzhs cangfengzhs requested a review from a team August 30, 2021 06:33
@cangfengzhs cangfengzhs linked an issue Aug 30, 2021 that may be closed by this pull request
@critical27 critical27 added the ready-for-testing PR: ready for the CI test label Sep 8, 2021
Copy link
Contributor

@critical27 critical27 left a comment

Choose a reason for hiding this comment

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

Generally LGTM
Add the detail to IndexScanExecutor as well.
Use camel style naming.

@cangfengzhs cangfengzhs force-pushed the profiling_storage_detail branch from 679db39 to 59a3a70 Compare September 9, 2021 04:39
@cangfengzhs cangfengzhs requested a review from a team September 13, 2021 02:57
Copy link
Contributor

@liuyu85cn liuyu85cn 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

@critical27 critical27 left a comment

Choose a reason for hiding this comment

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

LGTM, good job

@bright-starry-sky bright-starry-sky merged commit 488413b into vesoft-inc:master Sep 14, 2021
Copy link
Contributor

@yixinglu yixinglu left a comment

Choose a reason for hiding this comment

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

Please create a new PR to improve this


AggregateNode(RuntimeContext* context, IterateNode<T>* upstream, EdgeContext* edgeContext)
: IterateNode<T>(upstream), context_(context), edgeContext_(edgeContext) {}
: IterateNode<T>(upstream), context_(context), edgeContext_(edgeContext) {
IterateNode<T>::name_ = "AggregateNode";
Copy link
Contributor

@yixinglu yixinglu Sep 15, 2021

Choose a reason for hiding this comment

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

@cangfengzhs

I really don't recommend this way to initialize the fields of the base class. Please provide the constructor in the base class to do this, such as:

IterateNode<T>::IterateNode<T>(const std::string& name, ...) : name_(name) {}

AggregateNode(RuntimeContext* context, IterateNode<T>* upstream, EdgeContext* edgeContext) 
  : IterateNode("AggregateNode", upstream), context_(context)...{}


FetchEdgeNode(RuntimeContext* context,
EdgeContext* edgeContext,
EdgeType edgeType,
const std::vector<PropContext>* props,
StorageExpressionContext* expCtx = nullptr,
Expression* exp = nullptr)
: EdgeNode(context, edgeContext, edgeType, props, expCtx, exp) {}
: EdgeNode(context, edgeContext, edgeType, props, expCtx, exp) {
name_ = "FetchEdgeNode";
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto

@@ -44,18 +44,21 @@ class IndexOutputNode final : public RelNode<T> {
fields_(fields) {
type_ = context_->isEdge() ? IndexResultType::kEdgeFromIndexScan
: IndexResultType::kVertexFromIndexScan;
RelNode<T>::name_ = "IndexOpuputNode";
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-testing PR: ready for the CI test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[STO]Profiling of storage. Kill slow queries (on the storage side)
5 participants