4601f6c368
Summary: Antlr grammar has been updated to support putting edge types after the BFS symbol. Planner collects edge type filters for BFS and inlines them in the operator by joining the filter with the user input BFS filter itself. This requires no change from the standpoint of the operator. On the other hand, in order to use the faster lookup by a single edge type, `ExpandBreadthFirst` operator now accept an optional edge type. The edge type is passed from the planner only if the user is filtering by a single type. Unit tests as well as tck have been updated. Reviewers: florijan, mislav.bradac Reviewed By: florijan Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D777 |
||
---|---|---|
.. | ||
memgraph_snapshots | ||
neo4j_config | ||
neo4j_home | ||
plots | ||
results | ||
test_cases | ||
.gitignore | ||
index_creation.py | ||
ldbc-snb-impls-pom.xml | ||
ldbc-snb-impls-short-reads.properties | ||
ldbc-snb-impls-updates.properties | ||
mg | ||
neo | ||
README.md | ||
requirements_2.txt | ||
requirements_3.txt | ||
run_benchmark | ||
setup_dataset | ||
setup_dependencies | ||
setup_system |
LDBC benchmarks
How to run the benchmark against Neo4j OR Memgraph?
cd memgraph/tests/public_benchmark/ldbc
./setup_system
./setup_dependencies
./setup_dataset [--scale-factor 1]
./neo [--run] OR ./mg [--run]
# To run short reads by default, just call:
./run_benchmark
# To run update queries use the following.
./run_benchmark --properties-file ldbc-snb-impls-updates.properties
# You may need to increase the time compression when updating:
./run_benchmark --time-compresion-ratio 1.5 --properties-file ldbc-snb-impls-updates.properties
How to run a specific test?
cd memgraph/tests/public_benchmark/ldbc/ldbc-snb-impls/snb-interactive-neo4j
mvn exec:java -Dexec.mainClass="net.ellitron.ldbcsnbimpls.interactive.neo4j.util.QueryTester" -Dexec.args="shortquery1 933 --repeat=10000 --timeUnits=MICROSECONDS"
Useful terminal commands
How to find out Default Query Limits?
cd memgraph/tests/public_benchmark/ldbc/ldbc_driver
ag "DEFAULT_LIMIT"
How to run test cases?
cd memgraph/tests/public_benchmark/ldbc
neo4j-client --insecure -u "" -p "" -o test_cases/results/short_query_2.oc.out -i test_cases/queries/short_query_2.oc localhost 7687
How to create indexes manually?
cd memgraph/tests/public_benchmark/ldbc
source ve3/bin/activate
./index_creation.py ldbc-snb-impls/snb-interactive-neo4j/scripts/indexCreation.neo4j
Where is and how to use LDBC plotting?
cd memgraph/tests/public_benchmark/ldbc
source ve2/bin/activate
cd memgraph/tests/public_benchmark/ldbc/ldbc_driver/plotting
python make_charts_all_queries_all_metrics.py /path/to/ldbc_driver/results/LDBC-results.json legend_location
TODOs
- Run & validate all Short queries + optimize MemGraph performance.
- Write the log parser.
- Visualize the results.
- Run & validate all Update queries + optimize MemGraph performance.
- Run apacaci code an compare the results (Do We Need Specialized Graph Database?).
- Optimize MemGraph performance.
- Scale benchmarks (scale factors 1, 3, 10).
- Test against Postgres and make comparison between Neo, Memgraph & Postgres. Latency + Throughput.
- Run & validate all queries + optimize MemGraph performance.
- Optimize MemGraph spinup time.