We use ->merge when we could use ->upsert for the query as it is more performant.
Convert merge to an upsert. Less queries FTW.
None
NOne
Active
3.0
Code
Upsert class says:
This class can only be used with a table with a single unique index.
That's not the case here... so we have to continue with the merge.