mirror of https://gitee.com/bigwinds/arangodb
Improved Cluster Remote Blocks. In Some cases it only returns 1 relevant element instead of 1000. This did slow down a lot of queries.
This commit is contained in:
parent
ab13d1e3a6
commit
52aea40929
|
@ -930,7 +930,7 @@ bool DistributeBlock::getBlockForClient(size_t atLeast, size_t atMost,
|
|||
|
||||
AqlItemBlock* cur = _buffer.at(_index);
|
||||
|
||||
while (_pos < cur->size() && buf.at(clientId).size() < atLeast) {
|
||||
while (_pos < cur->size() && buf.at(clientId).size() < atMost) {
|
||||
// this may modify the input item buffer in place
|
||||
size_t id = sendToClient(cur);
|
||||
|
||||
|
|
Loading…
Reference in New Issue