pingcap / tidb

TiDB is an open-source, cloud-native, distributed, MySQL-Compatible database for elastic scale and real-time analytics. Try AI-powered Chat2Query free at : https://www.pingcap.com/tidb-serverless/
https://pingcap.com
Apache License 2.0
37.03k stars 5.82k forks source link

Placement Rules set with databasename or tablename not with startkey and end key #23338

Open lookhua opened 3 years ago

lookhua commented 3 years ago

Feature Request

now Placement Rules is setted with tartkey and end key, it is not convenient; i want to set with databasename or tablename

xhebox commented 3 years ago

/sig sql-infra

xhebox commented 3 years ago

Does this RFC: placement rules in SQL suit your needs, @lookhua?

The master branch has supported adding rules by partition names. It is on a very early stage of dev, however.