-
Notifications
You must be signed in to change notification settings - Fork 963
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
[wip -- do not review] feat: add support for big values in SeederV2 #4222
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: kostas <[email protected]>
@@ -137,6 +138,8 @@ def __init__( | |||
data_size=100, | |||
collection_size=None, | |||
types: typing.Optional[typing.List[str]] = None, | |||
huge_value_percentage=0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For now I will keep a flat probability for each key in the key target to contain a huge value
local elements = dragonfly.randstr(LG_funcs.esize, LG_funcs.csize) | ||
local elements | ||
if huge_entry() then | ||
-- Hard coded 10 here, meaning up to 10 huge entries per set |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
//TODO so I don't forget to fix it. Replace 10
with LG_funcs.csize()
@@ -85,6 +88,7 @@ while true do | |||
if counter % 10 == 0 then | |||
-- calculate intensity (not normalized probabilities) | |||
-- please see attached plots in PR to undertand convergence | |||
-- https://github.com/dragonflydb/dragonfly/pull/2556 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
took me a few seconds to find this so I thought I should include the link. Now we can jump straight to the pr if needed (and it will be needed for anyone who changes this code).
resolves #4157
//TODO add tests