MAP-5: Optimize metadata mapping queries by adding database indices
Add indexes on those metadatamapping_metadata_term_mapping columns
that are used in queries and did not have indexes yet. Note that
some indexes already exist prior to this commit (namely the unique
indexes).
Also note that based on testing, mysql allows char values longer
than the 255 char limit (imposed by innodb) to be indexed.
Querying with a char value longer than 255 chars results in the
index as being used as a prefix index.