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

Cometindex performance improvements #4851

Merged
merged 4 commits into from
Sep 12, 2024
Merged

Commits on Sep 10, 2024

  1. cometindex: improve event query performance

    This changes the query structure to avoid sorting and hash merges,
    exploiting the fact that events only have one block or transaction
    associated with them.
    cronokirby committed Sep 10, 2024
    Configuration menu
    Copy the full SHA
    7eb5504 View commit details
    Browse the repository at this point in the history
  2. cometindex: add index for attributes referencing events

    This is needed to efficiently get the attributes for an event.
    
    Without this performance explodes if pindexer is far behind.
    cronokirby committed Sep 10, 2024
    Configuration menu
    Copy the full SHA
    c3d6fc0 View commit details
    Browse the repository at this point in the history
  3. Rustfmt

    cronokirby committed Sep 10, 2024
    Configuration menu
    Copy the full SHA
    c2a75f5 View commit details
    Browse the repository at this point in the history
  4. cometindex: use faster event count logging

    COUNT(*) is actually relatively slow compared to taking the max rowid.
    This is just for information, and spending ~1 second on this is not
    worth it.
    cronokirby committed Sep 10, 2024
    Configuration menu
    Copy the full SHA
    fdfcfb1 View commit details
    Browse the repository at this point in the history