Currently, truncate table deletes rows in table in one large transaction, too large transaction is very likely to fail. This commit use DDL to do the work, it returns instantly, old data will be deleted by background worker.
Currently, truncate table deletes rows in table in one large transaction, too large transaction is very likely to fail. This commit use DDL to do the work, it returns instantly, old data will be deleted by background worker.