MySQL Forums :: InnoDB :: utf8 and utf8mb4 performance difference


Advanced Search

Re: utf8 and utf8mb4 performance difference
Posted by: Rick James ()
Date: September 30, 2016 08:04PM

In 'unicode_520', for example, the two characters "ae" are treated as equal to the single character "æ". Ditto for the 'german2' collation. This is an example of where the the 'general' collation is a little faster -- because it takes less effort.

In most collations "lj" = "lj", but not in 'general'.

A longer list of such differences can be found here: http://mysql.rjweb.org/utf8_collations.html .

There is a third category of collation, 'bin', as in 'utf8_bin' and 'utf8mb4_bin'. These are the fastest, since they blindly compare bits; no case folding; no accent stripping. That is, "A" != "a" != "á", etc.; in all(?) other collations, those are treated as equal. (MySQL 8.0 promises to have some collations that will invalidate this last statement.)

Options: ReplyQuote


Subject Views Written By Posted
utf8 and utf8mb4 performance difference 622 hua kai 09/09/2016 07:25AM
Re: utf8 and utf8mb4 performance difference 453 Rick James 09/10/2016 10:48PM
Re: utf8 and utf8mb4 performance difference 344 hua kai 09/12/2016 08:55PM
Re: utf8 and utf8mb4 performance difference 303 Rick James 09/13/2016 04:07PM
Re: utf8 and utf8mb4 performance difference 315 hua kai 09/18/2016 12:20AM
Re: utf8 and utf8mb4 performance difference 288 Peter Brawley 09/18/2016 01:40PM
Re: utf8 and utf8mb4 performance difference 302 hua kai 09/19/2016 02:14AM
Re: utf8 and utf8mb4 performance difference 426 Xing Zhang 09/20/2016 08:38PM
Re: utf8 and utf8mb4 performance difference 299 hua kai 09/25/2016 01:20AM
Re: utf8 and utf8mb4 performance difference 285 Rick James 09/30/2016 08:04PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.