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

[indexer-alt] Add obj_info pipeline #20436

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lxfind
Copy link
Contributor

@lxfind lxfind commented Nov 26, 2024

Description

Describe the changes or additions included in this PR.

Test plan

How did you test the new or updated feature?


Release notes

Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.

For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.

  • Protocol:
  • Nodes (Validators and Full nodes):
  • Indexer:
  • JSON-RPC:
  • GraphQL:
  • CLI:
  • Rust SDK:
  • REST API:

@lxfind lxfind marked this pull request as ready for review November 26, 2024 15:50
Copy link

vercel bot commented Nov 26, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sui-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 27, 2024 6:10pm
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
multisig-toolkit ⬜️ Ignored (Inspect) Visit Preview Nov 27, 2024 6:10pm
sui-kiosk ⬜️ Ignored (Inspect) Visit Preview Nov 27, 2024 6:10pm
sui-typescript-docs ⬜️ Ignored (Inspect) Visit Preview Nov 27, 2024 6:10pm

@lxfind lxfind force-pushed the indexer-alt-add-object-info-pipeline branch from 1c2254c to 6d4de25 Compare November 27, 2024 18:08
@lxfind lxfind temporarily deployed to sui-typescript-aws-kms-test-env November 27, 2024 18:09 — with GitHub Actions Inactive
@lxfind lxfind marked this pull request as ready for review November 27, 2024 18:09
@lxfind lxfind temporarily deployed to sui-typescript-aws-kms-test-env November 27, 2024 18:09 — with GitHub Actions Inactive
/// Returns all objects that are used as input to the transactions in the checkpoint,
/// and already exist prior to the checkpoint.
pub fn checkpoint_input_objects(&self) -> BTreeMap<ObjectID, &Object> {
let mut output_objects_seen = HashSet::new();
Copy link
Contributor

Choose a reason for hiding this comment

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

what's the consideration here of suing im instead of std?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oops that was a typo

if !latest_live_output_objects.contains_key(object_id) {
// If an input object is not in the latest live output objects, it must have been deleted
// or wrapped in this checkpoint. We keep an entry for it in the table.
// This is necessary when we query objects and iterating over them, so that we don't
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 following here, can you elaborate on the query that needs to use deleted / wrapped entries?
also looks like there is no "marker column" marking if the object ID is deleted/wrapped, would that be problematic, for example if a query asking for 50 IDs ended up getting some deleted objects, and as a result end graphql response has < 50 results?

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.

2 participants