I stumbled upon this query which takes quite some time:
284 ms 0or1row dbqd.new-portal.tcl.portal-procs.portal::get_datasource_name.select: 0or1row nsdb0
select name
from portal_datasources
where datasource_id = :ds_id
I was wondering how long I could util_memoize this? My assumption would be forever if you cannot change the data source name without a restart :)