viascom / nanoid-postgres

Nano ID for PostgreSQL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unused variable: "step"

Crembot opened this issue · comments

It seems like there's a variable called "step" that gets calculated at the start of the function but then.. Isn't used for anything?

step := cast(ceil(1.6 * mask * size / length(alphabet)) AS int);

Hey, thanks a bunch for opening an issue! I'm about to dive into checking it out right now. I'll get back to you as soon as I can. Cheers!

Thanks for hanging in there! I've fixed the issue with the unused step variable and snuck in some performance tweaks. The function should run smoother now, especially for more significant identifiers. Cheers!