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

config dictionary query size #2139

Merged
merged 3 commits into from
Nov 5, 2023
Merged

config dictionary query size #2139

merged 3 commits into from
Nov 5, 2023

Conversation

jiqiang90
Copy link
Contributor

@jiqiang90 jiqiang90 commented Nov 4, 2023

Description

allow dictionary query range configurable

--dictionary-query-size=20000 --debug="dictionary"

<dictionary> DEBUG query: query($events_0_0:String!,$events_0_1:String!,$events_1_0:String!,$events_1_1:String!,$events_2_0:String!,$events_2_1:String!,$events_3_0:String!,$events_3_1:String!,$events_4_0:String!,$events_4_1:String!){_metadata {lastProcessedHeight genesisHash }  events (filter:{or:[{and:[{module:{equalTo:$events_0_0}},{event:{equalTo:$events_0_1}}]},{and:[{module:{equalTo:$events_1_0}},{event:{equalTo:$events_1_1}}]},{and:[{module:{equalTo:$events_2_0}},{event:{equalTo:$events_2_1}}]},{and:[{module:{equalTo:$events_3_0}},{event:{equalTo:$events_3_1}}]},{and:[{module:{equalTo:$events_4_0}},{event:{equalTo:$events_4_1}}]}],blockHeight:{greaterThanOrEqualTo:"331122",lessThan:"351122"}},orderBy:BLOCK_HEIGHT_ASC,first:100,distinct:[BLOCK_HEIGHT]){nodes {blockHeight }  } }

Query end block range + 20000

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist

  • I have tested locally
  • I have performed a self review of my changes
  • Updated any relevant documentation
  • Linked to any relevant issues
  • I have added tests relevant to my changes
  • Any dependent changes have been merged and published in downstream modules
  • My code is up to date with the base branch
  • I have updated relevant changelogs. We suggest using chan

@jiqiang90 jiqiang90 requested a review from stwiname November 5, 2023 20:24
@jiqiang90 jiqiang90 merged commit 115d5ae into main Nov 5, 2023
1 of 2 checks passed
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