pllua / pllua-deprecated

[DEPRECATED] This repository is no longer maintained. Please follow https://github.com/pllua/pllua
197 stars 16 forks source link

function cache #26

Open eugwne opened 8 years ago

eugwne commented 8 years ago

Changed cache fucntion info storage from string key->LUA_REGISTRYINDEX value to postgres hash table, this should speed look up time for cases like "select function() from ...many rows" and reduce time for creating/reindexing functional indexes

Unfortunately it is not possible to make pointer to a lua function...

Some function behaviour (load/reload) might be changed, and I couldn't find any docs how function caching should work inside sql servers.

Please let me know if this patch breaks anything.