3 ms·
I'm sure you simply meant to make this comparison based on the fact that both implementations execute scripted functions on the data store server. However, I th
by Nycto 15y ago
I'm sure you simply meant to make this comparison based on the fact that both implementations execute scripted functions on the data store server. However, I think there is a very important distinction that warrants a clarification: Stored procedures are saved on the server and then referenced by name. Redis scripting requires that the code be transmitted in each request.
Antirez goes over this in his original post, here:
http://antirez.com/post/redis-and-scripting.html http://antirez.com/post/redis-and-scripting.html
- simonw 15y ago"Redis scripting requires that the code be transmitted in each request." Only until antirez implements the EVALSHA command.
- antirez 15y agoImplemented ;)
- a-priori 15y agoRedis scripting requires that the code be transmitted in each request. For now, yes, but antirez has said that he's considering adding an EVALSHA command or something that will execute an existing script by the hash of the source code.