S
S
skvoshiz2015-06-23 05:38:54
PHP
skvoshiz, 2015-06-23 05:38:54

Which is better to use pconnect vs connect?

Hello, I'm currently facing a problem. Can't figure out the difference...
I have a server that has a limit of 50 concurrent DB connections.
And I can't figure out which is better to use, pconnect or connect.
Example: (60 users of the program run it at the same time, it sends a request to a PHP file that checks the data from the database and returns a response)
In this case, what is the best to use?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sbh, 2015-06-23
@skvoshiz

Dance on whether you need to constantly keep the connection to work with the system. If you use a persistent connection, then you are guaranteed to take all 60 connections with 60 users. If you forcibly disconnect the connection after the next request, then more users can work simultaneously.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question