Repository navigation
Conversation
Signed-off-by: itowlson <ivan.towlson@fermyon.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We currently have different resource table sizes for different factors:
u32::MAXThere is also a "default" size in
Table::default, which is used by PostgreSQL and MySQL: this is 1024.Which would be all well and good if these had been chosen to be different with specific intent, but... I am not sure that's what happened. From what I can tell - and I apologise if I am overlooking anyone's thought process - these numbers were picked separately at different times by different people who just had different senses of "a number that seems reasonable."
This PR proposes to consolidate on the 1024 value (which was Ryan's "number that seems reasonable", and he seems like a level-headed sort of chap). In principle I could probably shift everything over to
Table::default()and remove the new const, but we maybe want to leave it open for configuration...?The main risk is KV, as that's the factor receiving a reduction. Everything else stays the same or gets bigger. Does anyone recall if the
u32::MAXwas driven by a particular requirement? (cc @kate-goldenring) Do we foresee a risk to embedders from the proposed reduction? (And I guess do we see any risk of excess resource consumption from allowing so many SQLite DBs.)