You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
would scale and speed up sync 3x-10x times.
syncing truncated translation table with 17765 translations takes 15,288.38 ms
If you would like to perform multiple "upserts" in a single query, then you should use the upsert method instead.
All databases except SQL Server require the columns in the second argument of the upsert method to have a "primary" or "unique" index. In addition, the MySQL database driver ignores the second argument of the upsert method and always uses the "primary" and "unique" indexes of the table to detect existing records.
Is your feature request related to a problem? Please describe.
I'm always frustrated when it takes to long to sync lots of translations.
Describe the solution you'd like
use upsert instead of looping through every key
Describe alternatives you've considered
using a translationSeeder that uses upsert
addGroupTranslation (and or more places) could benefit from upsert https://laravel.com/docs/9.x/eloquent#upserts
would scale and speed up sync 3x-10x times.
syncing truncated translation table with 17765 translations takes 15,288.38 ms
Is your feature request related to a problem? Please describe.
I'm always frustrated when it takes to long to sync lots of translations.
Describe the solution you'd like
use upsert instead of looping through every key
Describe alternatives you've considered
using a translationSeeder that uses upsert
example
The text was updated successfully, but these errors were encountered: