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:
Matej Ferencevic
2019-11-25 15:08:16 +01:00
parent 673ebf428c
commit 9e04183be7
9 changed files with 122 additions and 32 deletions

View File

@@ -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);