Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于ycsb的数据格式 #10

Closed
penhison opened this issue May 4, 2019 · 3 comments
Closed

关于ycsb的数据格式 #10

penhison opened this issue May 4, 2019 · 3 comments

Comments

@penhison
Copy link

penhison commented May 4, 2019

INSERT 6284781860667377211
ycsb测试的条目的键值都为8字节,是指将6284781860667377211视为一个uint64_t,键和值都为这个8字节的值,还是截取前8个数字如62847818作为键和值的值?

@ZhangJiaQiao
Copy link
Owner

截取前8字节,不是8个数字

@penhison
Copy link
Author

penhison commented May 4, 2019

我现在的做法是将操作后面的数字如6284781860667377211视为一个10进制的类型为uint64_t的数字,这样后面这一部分就是刚好只有8个字节,同时将这个值作为键和值的值插入到数据库,这样子是否正确?

@ZhangJiaQiao
Copy link
Owner

最好还是截取前8字节,但是这个数本来都是随机的,所以理论上截取哪里都没事,反正够8字节就行。但是还是截取前8字节比较好

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants