arcadedb icon indicating copy to clipboard operation
arcadedb copied to clipboard

Implement truncate bucket

Open lvca opened this issue 9 months ago • 2 comments

A truncate command could simply leave page number 1 in a bucket and delete all the other pages. This is similar to a drop bucket + create bucket, but in a transaction.

In order to do this, we need to create a new structure to host deleted pages in a transaction. Before 25.3.1 pages were never deleted, so this structure is completely missing.

lvca avatar Mar 24 '25 21:03 lvca

@lvca we have this command: https://docs.arcadedb.com/#sql-truncate-bucket

Should we improve it in someway?

robfrank avatar May 10 '25 07:05 robfrank

That command has been inherited from OrientDB, but if you look into the code the implementation has been commented.

lvca avatar Sep 09 '25 05:09 lvca