Skip to content

Conversation

jvolmer
Copy link
Contributor

@jvolmer jvolmer commented Aug 27, 2025

Enterprise branch that needs to be merged together: https://github.com/arangodb/enterprise/pull/1540

This refactoring improves on the testability of the edge cursor for a dbserver because we want to add new functionality there. It basically separates the dbserver index cursor (a cursor for one index on one collection / shard) from the dbserver edge cursor (a collection of dbserver index cursors: there can be several collections / shards and each one of them can have several index cursors). Now the dbserver edge cursor can be properly unit tested because all the server related stuff is extracted into dbserver index cursor.
Additionally, I renamed: SingleServerEdgeCursor to DBServerEdgeCursor and RefactoredSingleServerEdgeCursor to SingleServerEdgeCursor.

jvolmer and others added 26 commits July 17, 2025 14:46
- add a use-cache plug to SingleServerNeighbourProvider because for
some usages - e.g. a simple tree traversal - the cache will not be
useful and just waste memory. The plug is not yet used.
- reverse batch size memory batch for batch vector for more efficient
memory usage
- get batch size from ExecutionBlock::DefaultBatchSize instead of
using a "magic number"
@jvolmer jvolmer self-assigned this Aug 27, 2025
@cla-bot cla-bot bot added the cla-signed label Aug 27, 2025
@jvolmer
Copy link
Contributor Author

jvolmer commented Aug 27, 2025

TODO merge parent first

@jvolmer jvolmer force-pushed the feature/refactor-dbserver-edge-cursor branch from 949a843 to ba81e8e Compare August 27, 2025 22:37
We don't need nested vector of cursors, simple vector is enough
Base automatically changed from feature/batch-neighbour-retrieval-single-server-case to devel August 28, 2025 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants