mysql - SQL, PHP - Close a sleeping connection -


good day all. have little problem:

how close sleeping connections database?

when issue query query executed connection remains on sleep mode 2-3 seconds. problem generate queries faster closed.

is there way force connection close before entering in sleep mode? or workaround.

thank help.

note: connections not permanent, close, slow... note 2 - mysql_close(): command issued @ end of query. still query goes sleep mode before close. attach print screen in min.

enter image description here

notice sleeping connections... closed in 1-3 secs... generate queries faster. need skip sleep wasted time.

are using mysql_pconnect() ? if not, should not happen if close every connection made database.

edit : similar issue ?


Comments

Popular posts from this blog

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -

java - Getting corefrences with Standard corenlp package -

jQuery clickable div with working mailto link inside -