Commit d9dc89bc authored by linfengshow's avatar linfengshow
Browse files

修改缓冲池大小,暂时删除test

parent a512be2d
No related merge requests found
Showing with 8 additions and 8 deletions
+8 -8
......@@ -5,13 +5,13 @@
#define TABLE_NUM 9 // 共9张表
#define NUM_WARE 1 // 仓库数量
#define STOCK_PER_WARE 1000 // 每个仓库有十万种商品的库存数据
#define DISTRICT_PER_WARE 5 // 每个仓库为10个地区提供服务
#define CUSTOMER_PER_DISTRICT 300 // 每个地区有3000个用户
#define STOCK_PER_WARE 100000 // 每个仓库有十万种商品的库存数据
#define DISTRICT_PER_WARE 10 // 每个仓库为10个地区提供服务
#define CUSTOMER_PER_DISTRICT 3000 // 每个地区有3000个用户
#define HISTORY_PER_CUSTOMER 1 // 每个用户有一条交易历史
#define ORDER_PER_DISTRICT 300 // 每个地区有3000个订单
#define FIRST_UNPROCESSED_O_ID 210 // 第一个未处理的订单
#define MAXITEMS 1000 // 有多少个item
#define ORDER_PER_DISTRICT 3000 // 每个地区有3000个订单
#define FIRST_UNPROCESSED_O_ID 2101 // 第一个未处理的订单
#define MAXITEMS 100000 // 有多少个item
static int next_o_id[NUM_WARE+1][DISTRICT_PER_WARE+1];
std::mutex next_o_id_mutex;
......
No preview for this file type
......@@ -32,8 +32,8 @@ static constexpr int INVALID_TIMESTAMP = -1; //
static constexpr int INVALID_LSN = -1; // invalid log sequence number
static constexpr int HEADER_PAGE_ID = 0; // the header page id
static constexpr int PAGE_SIZE = 4096; // size of a data page in byte 4KB
// static constexpr int BUFFER_POOL_SIZE = 65536; // size of buffer pool 256MB
static constexpr int BUFFER_POOL_SIZE = 262144; // size of buffer pool 1GB
static constexpr int BUFFER_POOL_SIZE = 65536; // size of buffer pool 256MB
// static constexpr int BUFFER_POOL_SIZE = 262144; // size of buffer pool 1GB
static constexpr int LOG_BUFFER_SIZE = (1024 * PAGE_SIZE); // size of a log buffer in byte
static constexpr int BUCKET_SIZE = 50; // size of extendible hash bucket
......
File deleted
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment