DrByte:
Just to close the loop here ...
We've opted for ON DUPLICATE KEY UPDATE for ZC v1.6.0:
https://github.com/zencart/zencart/pull/244
and
https://github.com/zencart/zencart/pull/245
I don't wish to be a pain, but is this really the best of the possible solutions?
What happens when two visitors get given the same sessionID, but only one can be entered into the database, wouldn't the "on duplicate key" effectively cause customer#2 to 'steal' the SessionID assigned to customer#1?
On the other hand, the 'insert ignore' will cause customer#2's insert to fail, which I assume will result in a new sessionID being generated for them, and customer#1's sessionID would remain unchanged.
I'm not seeing any benefits with the 'on duplicate key update' in this particular scenario.
Just my 2cents worth.
Cheers
RodG