We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Here's a test to fetch 500 rows which has 20 columns from a table, then insert them back without any changes:
$datas = App\SomeModel->limit(500)->get()->toArray(); App\SomeModel::insertOnDuplicateKey($datas);
The laravel-debugbar's timeline shows that inserting data spend ~250ms to excute while the insert sql just excute for ~30ms
It's seems that the ~200ms overheads comes from excuting Connection->affectingStatement(): https://github.com/illuminate/database/blob/0e126944cf0fb3da8fa456fefc34dcf65e80181d/Connection.php#L469 and it's just doing PDO value binding then to excute them.
So does this overheads produced by PDO or the Eloquent itself?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Here's a test to fetch 500 rows which has 20 columns from a table, then insert them back without any changes:
The laravel-debugbar's timeline shows that inserting data spend ~250ms to excute while the insert sql just excute for ~30ms
It's seems that the ~200ms overheads comes from excuting Connection->affectingStatement(): https://github.com/illuminate/database/blob/0e126944cf0fb3da8fa456fefc34dcf65e80181d/Connection.php#L469 and it's just doing PDO value binding then to excute them.
So does this overheads produced by PDO or the Eloquent itself?
The text was updated successfully, but these errors were encountered: