1
0
Fork 0
arangodb/js
Jan 6d107beeda
don't run compact() on a collection after a truncate() was done in th… (#8468)
* don't run compact() on a collection after a truncate() was done in the same transaction

running compact() in the same transaction will only increase the data size on disk due to RocksDB not being able to remove
any documents physically due to the snapshot we take at transaction start.
Decoupling the truncate transaction from the compact operation allows finishing the truncate transaction first, so we can
get rid of the snapshot. Running compact afterwards is then free to physically remove all the data.
As a nice side effect this change will also speed up the truncation of larger collections, because the compact will run
faster.

This change also exposes db.<collection>.compact() in the arangosh, in order to manually run a compaction on the data
range of a collection should it be needed for maintenance.

* fix documentation anchors
2019-03-20 16:27:54 +01:00
..
actions [devel] supervision bug fix backports (#8314) 2019-03-04 19:27:24 +01:00
apps/system Rebuild frontend (#8455) 2019-03-19 09:31:41 +01:00
client don't run compact() on a collection after a truncate() was done in th… (#8468) 2019-03-20 16:27:54 +01:00
common Index hints (#8431) 2019-03-19 09:14:18 +01:00
node upgraded to 4.17.11 because of CVE-2018-16487 (#8238) 2019-02-25 12:20:00 +01:00
server Named indices (#8370) 2019-03-13 18:20:32 +01:00
.eslintrc Bug fix/update ui node dependencies (#6869) 2018-10-15 12:38:06 +02:00
.jshintrc
GUIDELINES.md
JS_SHA1SUM.txt Copy installation files on startup (#6491) 2018-09-14 11:15:21 +02:00
minify-node-modules.ps1