Skip to content

[spring-index] optimize cache operations #1071

@martinlippert

Description

@martinlippert

At the moment, the index cache that keeps symbols, bean index, and potentially additional information in a cache on disc offers room for improvement. At the moment, the cache structure is kept in memory and updated internally and written to disc on every change. This causes frequent cache writes to disc as well as consumes additional memory all the time for the full cache content.

Two thoughts:

  • the cache writes to disc don't need to happen on every event, they could be accumulated in memory and then written to disc on specific events only (once an hour, after x number of changes, or something else)

  • the internal cache structure on disc could be changed towards an incremental model, where individual change events (deltas) are written to disc in an append mode. At specific moments (initial cache read, after certain events, or something else) those delta could be merged into the overall cache

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions