Incr/decr bigints

Hi, we would love to migrate to DragonflyDB but what’s keeping us back is that we’re not sure how to migrate our bigint module. The module itself is a few lines lines long and allows for bigint incr/decr on strings and hashes. How could we achieve the same here? Is forking the only way?

Please provide the link to this module

https://github.com/MatthewDarnell/RedisBigNum

Though we edited it to use a singular command like ‘incrbybig’ or ‘hincrbybig’

why did you edit it? seems the original module does not support hash maps

Yeah sorry, we added hash support too, I wrote that at first but then mistakenly thought this module supports it and removed that bit. Sorry mobile mistakes.

Edited also to have a similar API to original incrby

Can we add it somehow?

Won’t lua slowdown Dragonfly?

it will a little bit

better than nothing

we can not add custom API that is very specific to a single customer request

Will the slowdown be less pronounced than in Redis? Slightly or significantly?

i can not say

you still have more cpu power so it should be fine

Of course. It would be good however if you could provide modules API like in Redis if this is at all possible. If it is, do you plan it in the future?

have not thought about this. in any case, adding commands to multi-threaded Dragonfly is a more complicated task than with Redis.

Ok thanks. We’ll see if forking is feasible…

i suggest at least trying with lua - otherwise it’s a premature optimization

but whatever you prefer

You’re right. Thanks.