Skip to content

feat(registry): Added maybe_chunkify... - #4751

Merged
daniel-wong-dfinity-org merged 6 commits into
masterfrom
chunkify-large-registry-records-daniel-wong
Apr 22, 2025
Merged

daniel-wong-dfinity-org merged 6 commits into
masterfrom
chunkify-large-registry-records-daniel-wong

Conversation

@daniel-wong-dfinity-org

@daniel-wong-dfinity-org daniel-wong-dfinity-org commented Apr 9, 2025 •

Copy link
Copy Markdown
Contributor

... and have it be called from changelog_insert.

The new behavior is behind a flag, and as per usual, in release builds, it is disabled.

maybe_chunkify takes a RegistryAtomicMutateRequest, and converts it to an equivalent HighCapacityRegistryAtomicMutateRequest.

When the input is "too large" (and this feature is enabled), instead of having the value inlined, it is stored in stable memory, and the inline value is replaced with a "pointer" to the stable memory.

References

Closes NNS1-3681.

👈 Previous PR

@github-actions github-actions Bot added the feat label Apr 9, 2025
@daniel-wong-dfinity-org
daniel-wong-dfinity-org force-pushed the chunkify-large-registry-records-daniel-wong branch 6 times, most recently from 04f1bfe to ac216eb Compare April 10, 2025 08:48
@daniel-wong-dfinity-org
daniel-wong-dfinity-org changed the base branch from master to chunkify_composite_mutation-daniel-wong April 10, 2025 10:13
@daniel-wong-dfinity-org
daniel-wong-dfinity-org force-pushed the chunkify-large-registry-records-daniel-wong branch from ac216eb to 73e6313 Compare April 10, 2025 10:20
@daniel-wong-dfinity-org
daniel-wong-dfinity-org force-pushed the chunkify_composite_mutation-daniel-wong branch from 59d54d0 to 639924a Compare April 10, 2025 10:21
@daniel-wong-dfinity-org
daniel-wong-dfinity-org force-pushed the chunkify-large-registry-records-daniel-wong branch from 73e6313 to 406e7e1 Compare April 10, 2025 10:22

@daniel-wong-dfinity-org daniel-wong-dfinity-org left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Diff notes.

Comment thread rs/registry/canister/src/registry.rs Resolved
Comment thread rs/registry/canister/src/registry.rs Resolved
Comment thread rs/registry/canister/src/registry.rs Resolved
Comment thread rs/registry/canister/src/registry.rs Resolved
Comment thread rs/registry/canister/src/storage.rs Resolved
@daniel-wong-dfinity-org
daniel-wong-dfinity-org marked this pull request as ready for review April 10, 2025 13:21
@daniel-wong-dfinity-org
daniel-wong-dfinity-org requested a review from a team as a code owner April 10, 2025 13:21

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If this pull request affects the behavior of any canister owned by
the Governance team, remember to update the corresponding
unreleased_changes.md file(s).

To acknowldge this reminder (and unblock the PR), dismiss this
code review by going to the bottom of the pull request page, and
supply one of the following reasons:

  1. Done.

  2. No canister behavior changes.

@daniel-wong-dfinity-org
daniel-wong-dfinity-org dismissed github-actions[bot]’s stale review April 10, 2025 13:23

No canister behavior change.

The new behavior is behind a flag, and as per usual, it is disabled (except in tests that exercise the new behavior).

Comment thread rs/registry/canister/src/registry.rs Resolved
Comment thread rs/registry/canister/src/storage.rs Resolved
@max-dfinity max-dfinity changed the title feat(registry): (not yet active) Added maybe_chunkify... feat(registry): Added maybe_chunkify... Apr 11, 2025
@daniel-wong-dfinity-org
daniel-wong-dfinity-org force-pushed the chunkify_composite_mutation-daniel-wong branch from 639924a to d2a4c20 Compare April 12, 2025 07:01
@daniel-wong-dfinity-org
daniel-wong-dfinity-org force-pushed the chunkify-large-registry-records-daniel-wong branch from 3cee8d1 to 0eb4e4c Compare April 12, 2025 07:08
github-merge-queue Bot pushed a commit that referenced this pull request Apr 14, 2025
)

This is not used yet.

# References

Epic: [NNS1-3645]

[NNS1-3645]: https://dfinity.atlassian.net/browse/NNS1-3645

[👈 Previous PR][prev] | [Next PR 👉][next]

[prev]: #4758
[next]: #4751
Base automatically changed from chunkify_composite_mutation-daniel-wong to master April 14, 2025 23:06
@daniel-wong-dfinity-org
daniel-wong-dfinity-org force-pushed the chunkify-large-registry-records-daniel-wong branch from 0eb4e4c to fccc433 Compare April 22, 2025 09:35
@daniel-wong-dfinity-org
daniel-wong-dfinity-org added this pull request to the merge queue Apr 22, 2025
Merged via the queue into master with commit ca2d5e7 Apr 22, 2025
@daniel-wong-dfinity-org
daniel-wong-dfinity-org deleted the chunkify-large-registry-records-daniel-wong branch April 22, 2025 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants