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

[json rpc] deprecate indexes #18236

Merged
merged 1 commit into from
Jun 13, 2024

Conversation

phoenix-o
Copy link
Contributor

PR marks as deprecated following indexes:

  • transactions_by_input_object_id
  • transactions_by_mutated_object_id
  • loaded_child_object_versions

Copy link

vercel bot commented Jun 13, 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 Jun 13, 2024 8:01pm

Copy link

vercel bot commented Jun 13, 2024

@phoenix-o is attempting to deploy a commit to the Mysten Labs Team on Vercel.

A member of the Team first needs to authorize it.

@@ -233,6 +232,7 @@ pub struct IndexStore {
caches: IndexStoreCaches,
metrics: Arc<IndexStoreMetrics>,
max_type_length: u64,
remove_deprecated_tables: bool,
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we have a way to unconditionally remove loaded_child_object_versions and conditionally remove the other two? That way everyone can benefit from that one being nuked while people can opt into the other two being removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

no, we don't at the moment. We can create a config with explicit list of column families to be removed. Or nuke loaded_child_object_versions unconditionally.
Ofc subject for discussion, but I kind of like it this way. Puts some minor pressure on FN operator to start migration process from JSON RPC

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok i'm fine with leaving it as-is (single config to remove all deprecated cfs) so long as we can unconditionally nuke loaded_child_object_versions for everyone regardless of this flag since there's no reason to keep it.

@phoenix-o phoenix-o requested a review from bmwill June 13, 2024 18:26
@phoenix-o phoenix-o force-pushed the cf_optional_depricate_indexes branch from 031f7ae to 6f79442 Compare June 13, 2024 20:00
@phoenix-o phoenix-o merged commit ef071fd into MystenLabs:main Jun 13, 2024
39 of 43 checks passed
tx-tomcat pushed a commit to tx-tomcat/sui-network that referenced this pull request Jul 29, 2024
PR marks as deprecated following indexes:
* transactions_by_input_object_id
* transactions_by_mutated_object_id
* loaded_child_object_versions
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