Skip to content

Use PK for full-data-copy paging. #415

Closed
@ghost

Description

If there is multiple unique key (including PK), a non-PK key might be used. It is not the clustering key and it will be slow.

CREATE TABLE a.a (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `mobile` varchar(11) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mobile_unique` (`mobile`) USING BTREE
);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions