Skip to content

chifra blocks - caching is slower than not caching #3431

Open
@tjayrush

Description

@tjayrush

Proof:

chifra blocks 18000000-18000100:1 --decache >x

Clean out the cache of these blocks.

time chifra blocks 18000000-18000100:1 --cache >x

Executed in    2.44 secs    fish           external

Run a regular query for some blocks and cache them.

time chifra blocks 18000000-18000100:1 --cache >x

Executed in  191.55 secs    fish           external

Run the same exact query. 90 times slower. (Not a coincidence that 90 is about how many transactions are in an average block at 18,000,000.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions