Closed code-distortion closed 2 years ago
I have addressed this problem by getting Adapt to only look for stale databases via connections that are being prepared.
This way, if you only use the pgsql
connection for example, it won't search using the mysql
connection.
Description:
When Adapt starts, before building databases, it checks for stale databases to remove. It does this by looping through the present connections, and checking the databases within. However these connections can time-out, adding a delay to the test-process.
This is particularly prevalent when using a PostgreSQL database, because the way Laravel's config is set up means that the (unused) MySQL connection exists, but with the PostgreSQL server's details. Adapt then tries to connect to the PostgreSQL server with the MyQSL client, and this particular combination takes 1 minute before timing out.
Logs: