-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Remove duplication of block heads on delete (#3096)
## Relevant issue(s) Resolves #3085 #3089 Documents #3056 #3086 #3087 (I'm going to close these on merge, no need to have them littering the backlog) ## Description Removes the duplication of head links from delete blocks. PR also includes the following to save the hassle of multiple test-cid updates: - Removes `fieldName` from composite block deltas - Removes the magic `_head` link name, and extracts head links to a new, optional prop - Documents the reasons for duplicating various bits of data in the blockstore blocks as discussed in standup With the actions defined in `TestQueryCommitsWithFieldIDFieldWithUpdate`, create block size has been reduced by 4%, and update block size by 7% - this will vary a lot depending on what fields are being updated though, the test chosen to calc was just the first test I found that created one small doc, and updated a single field. I recommend reviewing commit by commit. The test-cid changes have been pulled out to their own commit.
- Loading branch information
1 parent
e59f6d9
commit 4e5470c
Showing
42 changed files
with
431 additions
and
359 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Remove duplication of block heads on delete | ||
|
||
The structure of blocks in the blockstore was reworked slightly - head links have been extracted to a separate property, and fieldName has been removed from composite blocks. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,5 +12,4 @@ package core | |
|
||
const ( | ||
COMPOSITE_NAMESPACE = "C" | ||
HEAD = "_head" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.