Skip to content
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

Update rel property #1149

Merged
merged 1 commit into from
Jan 5, 2023
Merged

Update rel property #1149

merged 1 commit into from
Jan 5, 2023

Conversation

acquamarin
Copy link
Collaborator

@acquamarin acquamarin commented Jan 3, 2023

This PR implements the backend to update a property of an existing rel.

  1. Defines a new class PersistentStoreUpdates which stores the updates to a list. When the user tries to read the updated list, the lists:readValues() function will call readUpdatesToVectorIfExists which updates the vector with the updated values in PersistentStoreUpdates.
  2. Renames the listsUpdateStore -> relUpdateStore, and refactors some functions.
  3. Optimizations for updating newly inserted rels. Optimization for updating newly inserted rels  #1150 (solved in this PR)

@acquamarin acquamarin changed the title Rel update Add support to update rels Jan 3, 2023
src/processor/result/factorized_table.cpp Show resolved Hide resolved
src/storage/storage_structure/lists/lists.cpp Outdated Show resolved Hide resolved
test/runner/e2e_update_rel_test.cpp Outdated Show resolved Hide resolved
test/runner/e2e_update_rel_test.cpp Outdated Show resolved Hide resolved
src/storage/storage_structure/lists/rel_update_store.cpp Outdated Show resolved Hide resolved
}

TEST_F(UpdateRelTest, UpdateNewlyInsertedEdges) {
ASSERT_TRUE(conn->query(getInsertKnowsRelQuery(
Copy link
Contributor

Choose a reason for hiding this comment

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

I am not sure what this tests if each of these insert queries run as a separate transaction and checkpoints. Let's discuss this.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added the conn->startWriteTrx() at the beginning of this test.

@acquamarin acquamarin merged commit f1471ee into master Jan 5, 2023
@acquamarin acquamarin deleted the rel-update branch January 5, 2023 10:10
@ray6080 ray6080 changed the title Add support to update rels Update rel property Jan 29, 2023
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.

None yet

2 participants