Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

Slow query. #565

Merged
merged 9 commits into from
Jul 1, 2021
Merged

Slow query. #565

merged 9 commits into from
Jul 1, 2021

Conversation

CPWstatic
Copy link
Contributor

No description provided.

@CPWstatic CPWstatic added the wip Solution: work in progress label Jun 17, 2021
@CPWstatic CPWstatic force-pushed the slow_query branch 2 times, most recently from cedfaa2 to 28ffc85 Compare June 28, 2021 05:47
@@ -1063,6 +1063,20 @@ struct ListFTIndexesResp {
3: map<binary, FTIndex> (cpp.template = "std::unordered_map") indexes,
}

enum QueryStatus {
Copy link
Contributor

Choose a reason for hiding this comment

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

prefer state than status

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Seems no difference between these two words? Besides we have a lot struct defined as Status now.

2: QueryStatus status;
3: i64 duration;
4: binary query;
// The session might transfor between query engines, but the query do not, we must
Copy link
Contributor

Choose a reason for hiding this comment

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

transfer


struct QueryDesc {
1: common.Timestamp start_time;
2: QueryStatus status;
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto

@@ -1063,6 +1063,20 @@ struct ListFTIndexesResp {
3: map<binary, FTIndex> (cpp.template = "std::unordered_map") indexes,
}

enum QueryStatus {
RUNNING = 0x01,
KILLING = 0x02,
Copy link
Contributor

Choose a reason for hiding this comment

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

do we not need a finished or stopped state?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The finished queries will be removed.

@@ -46,5 +46,6 @@ using ZoneID = int32_t;

using SessionID = int64_t;

using ExecutionPlanID = int64_t;
Copy link
Contributor

Choose a reason for hiding this comment

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

Query id is better than plan id.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For compatibility considered, I want to keep the idea Query ID for now, since we might have a truly global unique query id in further future.

yixinglu
yixinglu previously approved these changes Jun 29, 2021
@CPWstatic CPWstatic added ready-for-testing PR: ready for the CI test and removed wip Solution: work in progress labels Jun 29, 2021
Aiee
Aiee previously approved these changes Jun 30, 2021
@@ -0,0 +1,71 @@
/* Copyright (c) 2018 vesoft inc. All rights reserved.
Copy link
Contributor

Choose a reason for hiding this comment

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

2021


E_QUERY_NOT_FOUND = -2073,
Copy link
Contributor

Choose a reason for hiding this comment

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

need to add to nebula-common/src/common/graph/Response.h

laura-ding
laura-ding previously approved these changes Jun 30, 2021
Aiee
Aiee previously approved these changes Jun 30, 2021
@CPWstatic CPWstatic merged commit df7a638 into vesoft-inc:master Jul 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
ready-for-testing PR: ready for the CI test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants