If you declare the function as deterministic we have a small cache of input-to-output values for each user function.
On Saturday, 4 April 2015, Harshad RJ <[email protected]> wrote: > > On Sun, Apr 5, 2015 at 12:21 AM, Harshad RJ <[email protected] > <javascript:_e(%7B%7D,'cvml','[email protected]');>> wrote: > >> However, when I add the WHERE clause, which repeats the call to the >> custom function, I get a count of 150,000 and sometimes it is 160,000! > > > I forgot to mention: it is an atomic counter. There is no race condition > there. > > > > -- > *Harshad RJ <http://lavadip.com>* > > -- > You received this message because you are subscribed to the Google Groups > "H2 Database" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <javascript:_e(%7B%7D,'cvml','h2-database%[email protected]');> > . > To post to this group, send email to [email protected] > <javascript:_e(%7B%7D,'cvml','[email protected]');>. > Visit this group at http://groups.google.com/group/h2-database. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/h2-database. For more options, visit https://groups.google.com/d/optout.
