swoole / swoole-src

🚀 Coroutine-based concurrency library for PHP
https://www.swoole.com
Apache License 2.0
18.4k stars 3.16k forks source link

PDO Blocking? #4435

Closed necrogami closed 2 years ago

necrogami commented 2 years ago

We are currently investigating the use of swoole and swoole http server in our application however we are using the OCI8 oracle db driver with PDO. I wanted to know if this is fully blocking or how it would work with swoole?

deminy commented 2 years ago

You will need to test it by yourself, and here is how to write such a test script:

I wrote a script to test the Vertica driver (an ODBC driver), and you can follow the same idea to test the Oracle driver.

matyhtf commented 2 years ago

Now only pdo_mysql+mysqlnd supports asynchronous io, other pdo drivers are synchronously blocking