如何在不重新导入数据集的情况下运行mgbench?

huangapple go评论54阅读模式
英文:

How can I run mgbench without re-importing dataset?

问题

如果我已经有一个数据库在一个数据目录中,如何分配我的数据目录以避免导入查询以创建一个新数据库?

英文:

I am running the mgbench multiple times. I notice that it needs to create database every time in a temp directory when I re-run a benchmark.

If I have already a database in a data directory, how can I allocate my data directory to avoid importing queries to create a database?

答案1

得分: 0

运行 benchgraph(以前的 mgbench)是为了进行基准测试。这意味着在每个工作负载之后删除数据集,如果工作负载包含任何类型的写入查询,则数据集会受到损害,基准测试结果也会受到影响。因此,我们为了开始一个干净的状态而做了一切准备,不支持此功能。但我猜这可能会有点令人沮丧,等待导入数据集可能需要一些时间。

有可能只需注入一个快照文件然后重新启动 Memgraph。相同的初始快照在一个工作负载中运行不同测试期间被重用,因此您可以在基准测试开始时将该快照注入 Memgraph。详细信息请查看:https://memgraph.com/docs/memgraph/next/reference-guide/backup

英文:

Running the benchgraph (old mgbench) was created for benchmarking. This means removing the dataset after each workload, BCS if the workload contains any type of write queries, the dataset is being compromised, and benchmark results also. Hence, we made everything to have a clean start, there is no support for this. But I guess this can be a bit frustrating, waiting for a dataset to import could take some time.

There is a possibility just to inject a snapshot file and restart Memgraph. The same initial snapshot is being reused during the running of different tests in one workload, so you could inject that snapshot into the Memgraph, at the start of the benchmark. https://memgraph.com/docs/memgraph/next/reference-guide/backup

huangapple
  • 本文由 发表于 2023年5月10日 17:42:44
  • 转载请务必保留本文链接:https://go.coder-hub.com/76216963.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定