I am using criteria API in my project but the query which is created from hibernate is very slow.
When I run the explain on the query I found that the required index is not being used. So I tried to use "use index()"
clause provided by MYSQL
and the query took only 5 sec. which was taking 70 sec.
But the issue is I am using criteria API and wanted to know that is there any option to use "use index()"
clause in criteria API