You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the docs, prepared statements must be free'd before leaving the
function, this makes them useful only for statements that will be repeated in
the same function.
A use case more common to our app is the need to optimize calling a function
repeatedly so it would be nice to store the prepared statement in a lasting
scope.
I am trying out the idea of putting the prepared statements in plv8.$prepared
on init and not calling free. This goes against the docs so I'm not sure what
kind of trouble I'm seeking, but is seems to be working thus far.
Thanks
Original issue reported on code.google.com by t...@blit.com on 5 Jan 2013 at 8:40
The text was updated successfully, but these errors were encountered:
I think it works. The JS object should not be GC'ed and that object holds the
pointer to PG's cursor. So as far as both data is alive, you should be fine.
Original comment by umi.tan...@gmail.com on 8 Jan 2013 at 6:21
Original issue reported on code.google.com by
t...@blit.com
on 5 Jan 2013 at 8:40The text was updated successfully, but these errors were encountered: