memgraph/tests/benchmark_infra/groups/aggregation_parallel/setup.py
Mislav Bradac 68e78c417b NeoRunner + Harness bugfix
Reviewers: mferencevic, buda

Reviewed By: mferencevic

Subscribers: mferencevic, pullbot

Differential Revision: https://phabricator.memgraph.io/D588
2017-07-29 17:46:24 +02:00

10 lines
272 B
Python

BATCH_SIZE = 100
VERTEX_COUNT = 1000000
for i in range(VERTEX_COUNT):
print("CREATE (n%d {x: %d})" % (i, i))
# batch CREATEs because we can't execute all at once
if (i != 0 and i % BATCH_SIZE == 0) or \
(i + 1 == VERTEX_COUNT):
print(";")