批量插入输入

分类: 365平台官方 📅 2026-02-21 02:54:07 👤 admin 👁️ 2349 ❤️ 308
批量插入输入

dirdirdirdir:

请问批量插入数据的时候最大能够一次性批量插入多少数据?一次批量插入多少数据时性能最佳?有关系数据库里面batch的概念吗?不如每1000条提交一次

这里有一个写入数据的benchmark,可以参考一下。因为这里只是对存储层的测试,实际的话可能性能会有浮动,因为需要在查询层来根据vertexID对分区的分组,然后发送到storage并行写入。

github.com

vesoft-inc/nebula/blob/master/src/storage/test/StorageIndexWriteBenchmark.cpp

/* Copyright (c) 2020 vesoft inc. All rights reserved.

*

* This source code is licensed under Apache 2.0 License.

*/

#include

#include "common/base/Base.h"

#include "common/fs/FileUtils.h"

#include "common/utils/NebulaKeyUtils.h"

#include "interface/gen-cpp2/common_types.h"

#include "interface/gen-cpp2/storage_types.h"

#include "kvstore/KVStore.h"

#include "kvstore/NebulaStore.h"

#include "mock/AdHocIndexManager.h"

#include "mock/AdHocSchemaManager.h"

#include "mock/MockCluster.h"

#include "mock/MockData.h"

#include "storage/mutate/AddVerticesProcessor.h"

该文件已被截断。 显示原文

相关文章