Implement query execution timeout
Summary: The query execution now has a timeout for each Cypher query it executes. The timeout is implemented using TSC and will work only when TSC is available (same as PROFILE). TSC is used to mitigate the performance impact of reading the current time constantly. Reviewers: teon.banek Reviewed By: teon.banek Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D2562
This commit is contained in:
@@ -610,8 +610,6 @@ class DbAccessor final {
|
||||
|
||||
void Abort() { accessor_->Abort(); }
|
||||
|
||||
bool MustAbort() const { return false; }
|
||||
|
||||
bool LabelIndexExists(storage::Label label) const {
|
||||
return accessor_->LabelIndexExists(label);
|
||||
}
|
||||
@@ -784,8 +782,6 @@ class DbAccessor final {
|
||||
|
||||
void AdvanceCommand() { dba_->AdvanceCommand(); }
|
||||
|
||||
bool MustAbort() const { return dba_->should_abort(); }
|
||||
|
||||
bool CreateIndex(storage::Label label, storage::Property prop) {
|
||||
try {
|
||||
dba_->BuildIndex(label, prop);
|
||||
|
||||
Reference in New Issue
Block a user