Example:
select a.jurpersonid, a.Etternamn, a.fornamn, reskontro.f_test (b.maalepktnr) kommunenr
from felles.efjurperson a, kunde.ekkontrakt b
where a.jurpersonid = b.kundenr
When running this sql - returning 15000 rows of data my application will use 84Mb of memory.
If I change the function...