arcadedb
arcadedb copied to clipboard
Implement truncate bucket
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 we have this command: https://docs.arcadedb.com/#sql-truncate-bucket
Should we improve it in someway?
That command has been inherited from OrientDB, but if you look into the code the implementation has been commented.