The documentation says to pass as transaction-attribute (the call to /begin
):
maxTransactionSize: Transaction size limit in bytes. Honored by the RocksDB storage engine only.
I manage to do just that, despite the fact that the php
-client ignores the attribute, by setting it manually before I hand the transaction-instance over to the handler:
$trx->set('maxTransactionSize', $config['maxTransactionSize'])
This is var_dump
of the transaction attributes ($trx->attributes
) directly prior to the call to begin
:
includes/libs/arangodb/lib/ArangoDBClient/StreamingTransactionHandler.php:50:
array(2) {
'collections' =>
array(3) {
'read' =>
array(0) {
}
'write' =>
array(0) {
}
'exclusive' =>
array(1) {
[0] =>
string(7) "actions"
}
}
'maxTransactionSize' =>
int(536870912)
}
But the transaction fails with:
error : AQL: aborting transaction because maximal transaction size limit of 134217728 bytes is reached (while executing)
What am I missing/doing wrong?
I tested this on 3.5.4 and 3.6.1, with the same result.