Skip to content

Conversation

@afs
Copy link
Member

@afs afs commented Aug 25, 2023

Issue resolved : JENA-2354

Pull request Description:
Set the initial size of the Caffeine cache to 25%, not 50%.


  • Key commit messages start with the issue number (GH-xxxx, or if in JIRA, JENA-xxxx)

By submitting this pull request, I acknowledge that I am making a contribution to the Apache Software Foundation under the terms and conditions of the Contributor's Agreement.

@afs afs marked this pull request as ready for review August 25, 2023 13:22
Copy link
Member

@kinow kinow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small change, looks good. I guess you will wait for dobrist's reply in Jira (or merge noe and tweak again later if needed).

@afs
Copy link
Member Author

afs commented Aug 28, 2023

The OPs best course of action is to control the cache size with StoreParams. Setting the initial cache size isn't safe for databases that are in-use as the cache can grow later on. The initial sizing only delays the pain.

It is possible the OP 's setup never filled half the cache in which case the initial setting would over allocate. The size was chosen without a detailed analysis - it seemed like a good idea at the time! There isn't a contract.

@afs afs merged commit 8a486e7 into apache:main Aug 28, 2023
@afs afs deleted the jena2354_caffeine branch August 28, 2023 20:14
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