Domanda

I want to know that when I should use mysql_pconnect instead of mysql_connect.

È stato utile?

Soluzione

The answer is you shouldn't use either because the mysql_* extension is deprecated.

If we rewind several years, then the answer is still pretty much the same - in other DBMS' establishing connections is often slower so persistent connections can be used to increase performance. It's quite common that persistent connections cause more harm than good with mysql/php

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top