Quantcast
Channel: SCN: Message List - SAP SQL Anywhere
Viewing all articles
Browse latest Browse all 2182

Re: Function vs. Stored Procedure

$
0
0

When comparing alternatives, only a volume test in a real-world environment will determine which is faster.

 

Having said that, assuming that neither the function call nor the procedure call is combined with other operations in a single statement, and assuming the function is actually called (function caching does not happen), there should be no difference...

 

SET @variable = f ( whatever );

 

versus

 

CALL p ( whatever );

 

Those are big assumptions, however... as is the assumption you're using SQL Anywhere 16... tell us more.


Viewing all articles
Browse latest Browse all 2182

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>