After a query has completed the connection is closed. Edit: As the server handles this stuff in the background, you probably need not worry about it.
May 8, 2017
3
Level 5
Does Laravel/PHP keep pooling for database connections.
I have some middleware that sets the SEARCH_PATH for the current connection to {shema, public}.
My question is that when a connection is closed or still active does PHP/Laravel share that connection between each other instead of opening a new connection.
I'm worried that the search_path will be shared with other people who pick up the same connection.
Does anyone have any documentation proving this too?
Thanks,
Cameron.
Please or to participate in this conversation.