Skip to content

The way I'm using cacache is very slow #71

@bryanlarsen

Description

@bryanlarsen

A cache read by key now takes about ~30 seconds for my application.

A clue:

❯ sudo du -sh *
[sudo] password for blarsen: 
15M     content-v2
2.4G    index-v5
0       tmp

Usage pattern: write to a small number of keys (<10) every few seconds. On program start, read those keys.

The cache is used to dump state to disk so that it can be read on program start after unclean exit.

The index file for each key is about 280M, over 1M entries.

It appears that you're keeping the entire history? Is this just for reliability reasons, because there doesn't appear to be an API to read older versions of a key. Is there a way to reliably trim history to get my speed back?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions