Replies: 5 comments 4 replies
-
Did you get to the bottom of this? I have just noticed the same thing, using Laravel 8.80.0 and MySQL on AWS Lightsail |
Beta Was this translation helpful? Give feedback.
-
Same here, Laravel v10.48.11, php v8.2.0, mysql v8.0.31 on a local windows machine |
Beta Was this translation helpful? Give feedback.
-
I used the built-in mysql general log. On some queries the prepare got duplicated, on some other places it doesn't. Example |
Beta Was this translation helpful? Give feedback.
-
Go here https://github.com/laravel/framework/blob/11.x/src/Illuminate/Database/Connection.php#L410 That could be the issue |
Beta Was this translation helpful? Give feedback.
-
@vrgblzs what pdo extension are you using in your docker? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Running Laravel 8.16, on MySQL, and I'm noticing multiple prepare statements, for every execute, and I'm trying to find out what's causing this.
I'm seeing things like:
Same with session updates, interestingly the selection of the session data looks to be a single prepare/execute. If I run this:
it's a single prepare/execute. However, if I run this:
then it's two prepares and an execute. Using model methods, it's two prepares and an execute...
Beta Was this translation helpful? Give feedback.
All reactions