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

Cursors table #49

Merged
merged 3 commits into from
Oct 27, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
updated readme
  • Loading branch information
JulienR1 committed Oct 27, 2023
commit bf8e2f8d7ad06b3149e9c3776ad926330bc40b0e
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -121,11 +121,13 @@ The `USER_DIMENSION` is generated by the user provided schema and is augmented b
erDiagram
USER_DIMENSION }|--|{ blocks : " "
USER_DIMENSION }|--|{ module_hashes : " "
USER_DIMENSION }|--|{ cursors : " "

blocks }|--|{ final_blocks : " "

blocks }|--|{ unparsed_json : " "
module_hashes }|--|{ unparsed_json : " "

blocks }|--|{ final_blocks : " "
cursors }|--|{ unparsed_json : " "

USER_DIMENSION {
user_data unknown
@@ -161,15 +163,23 @@ erDiagram
final_blocks {
block_id FixedString(64)
}

cursors {
cursor String
module_hash FixedString(40)
block_id FixedString(64)
chain LowCardinality(String)
}
```

**Indexes**

| Table | Fields |
| -------------- | -------------------------------------------- |
| USER_DIMENSION | `(chain, module_hash)` `(chain, block_id)` |
| module_hashes | `module_hash` |
| blocks | `(block_id, block_number, chain, timestamp)` |
| module_hashes | `module_hash` |
| cursors | `(cursor, module_hash, block_id)` |
| unparsed_json | `(source, chain, module_hash, block_id)` |
| final_blocks | `block_id` |