New Zenner
- Join Date:
- Jun 2005
- Posts:
- 18
- Plugin Contributions:
- 0
utf8_general_ci or utf8_unicode_ci collation?
I see that Dr.Byte's MYSQL script (and other Zen Cart messages) say to change MYSQL collation to utf8_general_ci, but a Numinix message on updating ZenCart to utf8 suggests utf8_unicode_ci is best.
Which is best to use when upgrading from Latin collation?
I found the following statement at http://stackoverflow.com/questions/766809/whats-the-difference-between-utf8-general-ci-and-utf8-unicode-ci:
"There is almost never any reason to use utf_general_ci anymore, as we have left behind the point where CPU speed is low enough that the performance difference would be important. Your database will almost certainly be limited by quite other bottlenecks than this nowadays. The difference in performance is only going to be measurable in extremely specialised situations, and if that's you, you'd already know about it. If you're experiencing slow sorting, in almost all cases it'll be an issue with your indexes/query plan.
When I originally wrote this answer (over 3 years ago) I said that if you wanted, you could use utf8_general_ci most of the time, and only use utf8_unicode_ci when sorting was going to be important enough to justify the performance cost. However, the performance cost is no longer really relevant (and it may not have been back then, either). It's more important to sort properly in whichever language your users are using."
On the one hand, why not upgrade to the most accurate (utf8_unicode), but are there other "Zen Cart" reasons not to?