When storing XML documents in a BLOB or TEXT column there was no
way to create indexes on individual XML elements or attributes.
With the new auto generated columns in MySQL 5.7 (1st Release Candidate available now!) this
has changed! Let me give you an example. Let's work on the
following table:
mysql> SELECT * FROM country\G
*************************** 1. row ***************************
docid: 1
doc: <country>
<name>Germany</name>
<population>82164700</population>
<surface>357022.00</surface>
<city name="Berlin"><population></population></city>
<city …[Read more]