Skip to content

Update Bookmark Manager interface #534

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 18 commits into from
Nov 25, 2022
Merged

Conversation

bigmontz
Copy link
Contributor

Starting with 5.0, Fabric is enabled by default.
It

  1. allows multiple databases to be interacted with in a single transaction, and
  2. ensures bookmarks encode the state of all databases. Hence, the Bookmark Manager can be simplified while also improving its performance (by having to send less bookmarks to the server).

This PR implements the changes need on the bookmark manager API and behaviour.

bigmontz and others added 16 commits November 21, 2022 15:26
Starting with 5.0, Fabric is enabled by default.
It
 1. allows multiple databases to be interacted with in a single transaction, and
 2. ensures bookmarks encode the state of all databases.
Hence, the Bookmark Manager can be simplified while also improving its performance (by having to send less bookmarks to the server).

This PR implements the changes need on the bookmark manager API and behaviour.
…ed to test_should_send_all_db_bookmarks_and_replace_it_by_the_new_one
the bookmarks_supplier can be called 5 or 4 times.

See the original code:

```
      if len(get_bookmarks_calls) == 5:
            self.assertEqual(
                [
                    # acquire connection
                    ["system"],
                    # first tx
                    [None],
                    # name resolution
                    ["system"],
                    # acquire connection
                    ["system"],
                    # second tx
                    [None]
                ],
                get_bookmarks_calls
            )
        else:
            self.assertEqual(4, len(get_bookmarks_calls))
            self.assertEqual(
                [
                    # acquire connection
                    ["system"],
                    # first tx
                    [None],
                    # name resolution
                    ["system"],
                    # second tx
                    [None]
                ],
                get_bookmarks_calls
            )
```
@robsdedude robsdedude marked this pull request as ready for review November 22, 2022 10:09
Copy link
Contributor

@thelonelyvulpes thelonelyvulpes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Working well with .NET neo4j/neo4j-dotnet-driver#659

@robsdedude robsdedude merged commit abafc3d into 5.0 Nov 25, 2022
@robsdedude robsdedude deleted the 011-bookmark-manager-update branch November 25, 2022 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants