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

xengine主键range条件查询性能非常差 #28

Open
yeqing12 opened this issue Jun 1, 2023 · 1 comment
Open

xengine主键range条件查询性能非常差 #28

yeqing12 opened this issue Jun 1, 2023 · 1 comment

Comments

@yeqing12
Copy link

yeqing12 commented Jun 1, 2023

表结构,造100w行数据
CREATE TABLE sbtest1(idint(11) NOT NULL AUTO_INCREMENT,kint(11) NOT NULL DEFAULT '0',cvarchar(4096) COLLATE utf8mb4_general_ci NOT NULL DEFAULT '',pad char(60) COLLATE utf8mb4_general_ci NOT NULL DEFAULT '', PRIMARY KEY (id), KEY k_1 (k) ) ENGINE=XENGINE

简单的查询
1685607317977

1685607414222

同样表结构和数据,换成innodb没有问题

@luckywhu
Copy link
Collaborator

如果发现查询性能不符合预期,请检查下参数配置,是否L0/L1层存在层数堆积情况。当层数堆积较多时,lsm-tree的的range查询由于需要做多路归并,性能会受到影响

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