shardingsphere icon indicating copy to clipboard operation
shardingsphere copied to clipboard

Extended DDL for create table to simply the configuration

Open ssxlulu opened this issue 6 years ago • 6 comments

For now, the community has proposed the configuration is too complex #5030, and we have plan to optimize it #5017 .

After the optimization, we may further provide extended DDL for creata table syntax, which will auto generate configuration for the user.

The extended DDL may look like:

CREATE TABLE table_name (
     id int, 
     name varchar(20)
) DBPARTITION BY hash(id) DBPARTITIONS 2 TBPARTITION BY hash(name) TBPARTITIONS 2;

Such DDL will create a table with sharding rule for user.

ssxlulu avatar Apr 02 '20 02:04 ssxlulu

we have plan to optimize it #5017 .

Sorry, it means you want to do some contributions to this community?

tristaZero avatar Apr 02 '20 02:04 tristaZero

@tristaZero My privilege :)

ssxlulu avatar Apr 02 '20 03:04 ssxlulu

@ssxlulu Welcome your joining! Since it seems not an easy one, could you give more details about your idea? Like proposal, todo list, or schedule... Therefore we can basically know whether it can work well and receive more feedback from the community.

tristaZero avatar Apr 02 '20 04:04 tristaZero

Thanks for this reference. As you said, after configuration optimization, this issue is likely to move into the discussion.

tristaZero avatar Apr 03 '20 02:04 tristaZero

Do it after api has been reconstructed, mark as pending now.

Lucas-307 avatar Jun 23 '20 01:06 Lucas-307

RDL has been implemented.

kimmking avatar Sep 22 '20 14:09 kimmking