-
Notifications
You must be signed in to change notification settings - Fork 228
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
feat: add rich-indexer which is another built-in indexer based on relational database #4224
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EthanYuan
changed the title
[WIP] feat: add indexer-r which is a built-in indexer based on a relational database
[WIP] feat: add indexer-r which is another built-in indexer based on a relational database
Nov 9, 2023
EthanYuan
changed the title
[WIP] feat: add indexer-r which is another built-in indexer based on a relational database
[WIP] feat: add indexer-r which is another built-in indexer based on relational database
Nov 9, 2023
EthanYuan
force-pushed
the
indexer-r
branch
2 times, most recently
from
November 17, 2023 03:54
c9597a2
to
a1a2fe6
Compare
chenyukang
reviewed
Nov 21, 2023
chenyukang
reviewed
Nov 21, 2023
eval-exec
reviewed
Nov 22, 2023
eval-exec
reviewed
Nov 22, 2023
This was referenced Nov 23, 2023
EthanYuan
force-pushed
the
indexer-r
branch
3 times, most recently
from
December 6, 2023 11:58
5a4c646
to
6c6a08b
Compare
EthanYuan
force-pushed
the
indexer-r
branch
3 times, most recently
from
December 17, 2023 01:44
eb3ddd6
to
95fba3b
Compare
EthanYuan
changed the title
[WIP] feat: add indexer-r which is another built-in indexer based on relational database
[WIP] feat: add rich-indexer which is another built-in indexer based on relational database
Dec 17, 2023
EthanYuan
force-pushed
the
indexer-r
branch
5 times, most recently
from
December 21, 2023 15:25
120624c
to
26cf54d
Compare
EthanYuan
force-pushed
the
indexer-r
branch
4 times, most recently
from
January 3, 2024 15:02
39d695c
to
92012cd
Compare
…s than 10 blocks away from the node tip
…5::MAX to i64::MAX.
zhangsoledad
approved these changes
Mar 19, 2024
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What problem does this PR solve?
Problem Summary:
CKB already has a built-in indexer, which is based on a key-value database for indexing. Rich-Indexer is a complement to the original indexer, as it is based on a relational database, providing support for more complex and flexible queries.
Currently, Rich-Indexer supports two types of database drivers.
What is changed and how it works?
What's Changed:
Once the Rich-Indexer is activated, the CKB node's RPC based on the Rich-Indexer will gain additional capabilities.
get_cells
script argspartial
mode searchget_cells
cell data filter(prefix|exact|partial
)get_transactions
script argspartial
mode searchget_transactions
cell data filter(prefix|exact|partial
)get_cells_capacity
script argspartial
mode searchget_cells_capacity
cell data filter(prefix|exact|partial
)In addition, Rich-Indexer can also expose full block data in the form of a PostgreSQL database, providing the most basic and flexible indexing format accessible via SQL and compatible with any programming language.
Please refer to the README for more detailed information
Check List
Tests
Side effects
Release note