Subject | Re: [firebird-support] Speed difference question |
---|---|
Author | Dmitry Yemanov |
Post date | 2009-11-27T20:52:17Z |
Dimitry Sibiryakov wrote:
body is parsed/compiled/optimized just once and all the iterations just
parse/optimize a trivial EXECUTE PROCEDURE statement. In the latter one,
the whole SQL statement is being re-prepared every time. But anyway,
it's unlikely to see much difference in the real life.
Dmitry
>> Does anyone have an opinion on the likely speed difference between:I'd say it depends on the procedure complexity. In the former case, its
>> 1. Calling a stored procedure repeatedly versus
>> 2. Sending an sql statement to be prepared and then executing that repeatedly.
>
> There is no difference between these cases.
body is parsed/compiled/optimized just once and all the iterations just
parse/optimize a trivial EXECUTE PROCEDURE statement. In the latter one,
the whole SQL statement is being re-prepared every time. But anyway,
it's unlikely to see much difference in the real life.
Dmitry