caching - Should stored procedure cached in Mysql -


should stored procedure cached in mysql? if yes, how long stay in cache?

in case, when call 1 stored procedure first time, giving me result in 1sec, after gives me result in 400ms. , when changing parameters passed stored procedure , call first time, same behavior performed. so, can not understand happening? can 1 guide me?

thanks.

this normal behavior of system uses cache :

  • at first time execution results loaded in cache , small overhead appears
  • the following execution take less because in cache but if input changed (like in case : changing parameters of stored procedure) results in cache not longer viable new results (using changed inputs) must put in cache why takes longer

you can read more here


Comments

Popular posts from this blog

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -