You do not say what the problem is. Is this performance? If so, on which tables?
Are these really the connections that cause the problem? Or are these stored procedures? You do not know (or at least do not speak).
Best Practice: Find out where your bottlenecks are first before trying to solve a problem that you have not yet been diagnosed.
: , , . , . , sps , . , update t set c = c + 1 where id = n.
, , declare cursor for "select c from t where id = n" for update;, , , select c into @c; @c = c + 1; update t set c = @c where current of cursor; .
, , , , . . ( , ); , . .