memgraph/src
Teon Banek b90375c3ae Remove GraphDbAccessor and storage types from Ast
Summary:
This diff removes the need for a database when parsing a query and
creating an Ast. Instead of storing storage::{Label,Property,EdgeType}
in Ast nodes, we store the name and an index into all of the names. This
allows for easy creation of a map from {Label,Property,EdgeType} index
into the concrete storage type. Obviously, this comes with a performance
penalty during execution, but it should be minor. The upside is that the
query/frontend minimally depends on storage (PropertyValue), which makes
writing tests easier as well as running them a lot faster (there is no
database setup). This is most noticeable in the ast_serialization test
which took a long time due to start up of a distributed database.

Reviewers: mtomic, llugovic

Reviewed By: mtomic

Subscribers: mferencevic, pullbot

Differential Revision: https://phabricator.memgraph.io/D1774
2019-01-16 09:47:42 +01:00
..
auth Refactor storage file structure 2018-11-06 18:17:31 +01:00
communication Implement new spin lock 2019-01-08 09:15:07 +01:00
data_structures Implement new spin lock 2019-01-08 09:15:07 +01:00
database Cleanup BFS subcursors using transactional cache clean-up 2019-01-14 17:31:20 +01:00
distributed Remove GraphDbAccessor and storage types from Ast 2019-01-16 09:47:42 +01:00
durability Fix single node snapshot layout documentation 2019-01-11 11:06:12 +01:00
glue Refactor storage file structure 2018-11-06 18:17:31 +01:00
integrations Refactor storage file structure 2018-11-06 18:17:31 +01:00
io Serialize Endpoint via SLK 2018-12-03 09:32:25 +01:00
lisp LCP: Minor fixes 2019-01-15 16:55:12 +01:00
query Remove GraphDbAccessor and storage types from Ast 2019-01-16 09:47:42 +01:00
raft Optimize Raft log persistent storage 2019-01-15 16:06:08 +01:00
requests Implement kafka transform functionality 2018-07-19 12:52:25 +02:00
stats Serialize StateDelta for HA 2018-11-12 13:36:11 +01:00
storage Fix filtering of edges by edge type and destination 2019-01-14 17:31:40 +01:00
telemetry Refactor storage file structure 2018-11-06 18:17:31 +01:00
transactions Implement new spin lock 2019-01-08 09:15:07 +01:00
utils Implement new functions for new SkipList 2019-01-15 16:05:58 +01:00
CMakeLists.txt Add query profiling: Tree 2019-01-15 12:13:40 +01:00
config.hpp Make csv_to_snapshot more user friendly 2017-10-26 09:37:56 +02:00
memgraph_distributed.cpp Fix distributed startup and QA test 2018-10-18 10:34:05 +02:00
memgraph_ha.cpp Prepare memgraph for HA 2018-11-22 15:07:39 +01:00
memgraph_init.cpp Throw exceptions on RPC failure and Distributed error handling 2018-09-27 16:27:40 +02:00
memgraph_init.hpp Separate distributed from single node storage 2018-10-05 09:19:33 +02:00
memgraph.cpp Add explicit start to servers 2018-10-16 11:39:42 +02:00
version.hpp.in Add version.hpp.in and display it on '--version' flag 2017-09-27 09:04:44 +02:00