I am not sure if the PrismaClient will use a new connection when you call $connect a second time, If an existing connection is idle, then it should use the same connection. However, you can control the number of connections which PrismaClient is allowed to make through the
connection_limit parameter, so technically if you have set connection_limit to 1 then even if you call $connect twice it would use the same connection.