apache / incubator-horaedb-meta

Meta service of HoraeDB cluster.
https://horaedb.apache.org
Apache License 2.0
27 stars 15 forks source link

feat: support drop partition table parallelly #240

Closed chunshao90 closed 1 year ago

chunshao90 commented 1 year ago

Rationale

Support concurrent deletion of partition subtables at the shard level.

Detailed Changes

Test Plan

Manual test and CI.

CREATE TABLE `demo1`(
    `name`string TAG,
    `id` int TAG,
    `value` double NOT NULL,
    `t` timestamp NOT NULL,
    TIMESTAMP KEY(t)
    ) PARTITION BY KEY(name) PARTITIONS 400 ENGINE = Analytic

It takes 4 seconds to drop this partition table demo1 which contains 400 sub-tables.