See the entire discussion on
XWIKI-8691 about the need for automatically adding function based indexes (e.g. lower(DOC_FULLNAME)) for having a good performance with case insensitive queries that are currently not using any index at all.
- Use Hibernate's database mapping file when initializing a database (currently problematic, see
- Use liquibase schema manipulation during a data migration