We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Please answer these questions before submitting your issue. Thanks!
in this test case , just a table about 5000w rows, and generate Pk with snowflake which the PK is not continuously;
the table schema:
CREATE TABLE `test_table` ( `id` bigint(20) NOT NULL COMMENT '主键', `request_url` varchar(100) NOT NULL COMMENT '请求URL', `scheme` varchar(10) NOT NULL COMMENT '协议', `cost_time` bigint(18) NOT NULL COMMENT '耗时', `query_string` varchar(500) NOT NULL DEFAULT 'query_string' COMMENT '请求信息', `headers` json NOT NULL COMMENT '头信息', `parameters` json NOT NULL COMMENT '参数', `cookie` json NOT NULL COMMENT 'cookie', `path_info` varchar(100) NOT NULL DEFAULT 'path_info' COMMENT 'path_info', `CLIENT_VERSION` varchar(8) GENERATED ALWAYS AS (json_extract(`headers`, "$.CLIENT_VERSION")) VIRTUAL DEFAULT NULL, PRIMARY KEY (`id`), KEY `idx_http_playback_request_url` (`request_url`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8mb4_general_ci;
alter table test_table add index index_virual_client_version(CLIENT_VERSION);
admin show ddl
tidb-server -V
select tidb_version();
Release Version: v1.1.0-alpha.1-65-g8cc9e45 Git Commit Hash: 8cc9e45f419aba64c4ff63f676f66a948711525d Git Commit Branch: master UTC Build Time: 2018-02-05 02:55:59 GoVersion: go version go1.9.2 linux/amd64
The text was updated successfully, but these errors were encountered:
Thanks for your feedback! PTAL @zimulala
Sorry, something went wrong.
We will speed up the operation of adding index, see #5192.
@kitdine This issue was fixed by PR: #5964 , you can try the newest master branch. Appreciate to get your feedback :)
good to hear that,I will test it ASAP @winkyao amazing! 4000w+ rows Reduced the cost time from two weeks to two hours
No branches or pull requests
Please answer these questions before submitting your issue. Thanks!
If possible, provide a recipe for reproducing the error.
in this test case , just a table about 5000w rows, and generate Pk with snowflake which the PK is not continuously;
the table schema:
admin show ddl
,shows:tidb-server -V
or runselect tidb_version();
on TiDB)?The text was updated successfully, but these errors were encountered: