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] Create objects_version table. #17542

Merged
merged 1 commit into from
May 15, 2024

Commits on May 14, 2024

  1. [Indexer] Create objects_version table. (#17542)

    ## Description
    
    This table maps an object's ID and version to a checkpoint sequence
    number, in a table partitioned by the first byte of the object ID. This
    speeds up look ups into `objects_history` by offering a path for a first
    look-up to the correct partition in that table for a given object's ID
    and version.
    
    This PR introduces the table, and the logic to populate it in the
    indexer.
    
    ## Test plan
    
    ```
    sui$ cargo nextest run -p sui-indexer
    sui$ cargo nextest run -p sui-graphql-rpc
    sui$ cargo nextest run -p sui-graphql-e2e-tests --features pg_integration
    ```
    
    A future PR will make use of this table from GraphQL, which will test it
    further.
    ## Stack
    
    - #17686
    - #17687
    - #17688
    - #17689
    - #17691
    - #17694
    - #17695
    
    ---
    
    ## 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:
    amnn committed May 14, 2024
    Configuration menu
    Copy the full SHA
    7474c74 View commit details
    Browse the repository at this point in the history