New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(networking): change storage cost formula #692
Merged
Merged
Conversation
This file contains 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
b-zee
force-pushed
the
feat-store-cost-formula
branch
from
September 1, 2023 12:13
a91f764
to
bb6d106
Compare
joshuef
reviewed
Sep 1, 2023
joshuef
reviewed
Sep 1, 2023
joshuef
reviewed
Sep 1, 2023
b-zee
force-pushed
the
feat-store-cost-formula
branch
from
September 4, 2023 07:51
bff0b75
to
9fd5451
Compare
joshuef
approved these changes
Sep 4, 2023
joshuef
force-pushed
the
feat-store-cost-formula
branch
from
September 4, 2023 11:07
22d0ed2
to
24a5a2e
Compare
github-merge-queue
bot
removed this pull request from the merge queue due to failed status checks
Sep 4, 2023
b-zee
force-pushed
the
feat-store-cost-formula
branch
from
September 5, 2023 09:20
24a5a2e
to
ed71e4b
Compare
The storage cost is an exponential calculation, but was adjusted for readability and so that the store cost stays lower for longer. The cost only starts ramping up when we're nearing 50% of capacity. Here are the costs associated with steps: ``` 1 = 0.000000010 2 = 0.000000010 4 = 0.000000011 8 = 0.000000012 16 = 0.000000014 32 = 0.000000019 64 = 0.000000036 128 = 0.000000126 256 = 0.000001591 512 = 0.000253098 1024 = 6.405837009 2048 = 4103474778.282772064 ```
Tweaked the formula to have a lower maximum and use MAX_RECORDS_COUNT const.
b-zee
force-pushed
the
feat-store-cost-formula
branch
from
September 7, 2023 07:32
ed71e4b
to
c27fa44
Compare
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.
The storage cost is an exponential calculation, but was adjusted for
readability and so that the store cost stays lower for longer. The cost
only starts ramping up when we're nearing 50% of capacity.
Here are the costs associated with steps: