memgraph/tests/benchmark_infra/groups/aggregation_parallel/setup.py

10 lines
270 B
Python
Raw Normal View History

BATCH_SIZE = 100
VERTEX_COUNT = 10000
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(";")