memgraph/tests/macro_benchmark/harness/groups/update/setup.py
Mislav Bradac 3e793fb8ac Add single_create group to harness
Reviewers: mferencevic, buda

Reviewed By: mferencevic

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D714
2017-08-28 11:45:12 +02:00

9 lines
224 B
Python

BATCH_SIZE = 50
VERTEX_COUNT = 500
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:
print(";")