-
Notifications
You must be signed in to change notification settings - Fork 11.3k
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
[bridge indexer] query transactions #18400
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
3 Ignored Deployments
|
@@ -11,6 +11,13 @@ pub struct ProgressStore { | |||
pub checkpoint: i64, | |||
} | |||
|
|||
#[derive(Queryable, Selectable, Insertable, Identifiable, Debug)] | |||
#[diesel(table_name = sui_progress_store, primary_key(txn_digest))] | |||
pub struct SuiProgressStore { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure I understand the reason for this table. Or maybe whether we should have one table that tracks progress for different tasks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's for tracking query cursor as you know. The cursor is an TransactionDigest so better to be stored as bytes. We can tweak the existing table progress_store
to consolidate, but i don't know if we want to do it now (cuz it may break currently running indexer if we are not careful enough)
indexer_meterics, | ||
ingestion_metrics, | ||
); | ||
if let Some(sui_rpc_url) = config.sui_rpc_url.clone() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like to talk about how we plug in a data reader. Let's make sure to talk at our daily later
f3d0fb8
to
59d6a5e
Compare
59d6a5e
to
4a660f3
Compare
4a660f3
to
bf53aa0
Compare
c62a9a9
to
7b6674b
Compare
7b6674b
to
6d4d000
Compare
6d4d000
to
4a458f4
Compare
4a458f4
to
06d4c24
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice cleanup and I am fine to go in with this.
I'm also going to play with it locally
06d4c24
to
6839973
Compare
## 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:
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.