ltagliamonte-dd opened a new pull request, #2750: URL: https://github.com/apache/kvrocks/pull/2750
New Command HSETEX (HSET+EXPIRE): ``` HSETEX key TTL f1 v1 f2 v2 f3 v3... ``` Adding a command that set a key and adds also TTL reduces I/O and improves drastically the performances over pipelining or LUA functions. This is a common request feature/cmd https://github.com/redis/redis/issues/2905 **From my local tests with 8 workers, 600 client connections, over 4 executions on the same dataset.** (branch, TTL, results): kvrocks/unstable, NO TTL: 392,346,350,346 seconds -> avg -> **358.50 s** kvrocks/unstable, 30d TTL HSET+EXPIRE pipeline: 481,532,483,525 seconds -> avg -> **505.25 s** kvrocks/unstable, 30d TTL using function: 549,499,491,488 seconds -> avg -> **506.75 s** kvrocks/setExpire, 30d TTL with HSETEX: 398,348,342,393 -> avg -> **370.25s** **TODO**: add tests -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
