I am using Hibernate 3.3.1 and PostgresQL 9.2.2 server. The tables for my application are generated by hibernate automatically and now i would like to do an optimization for a very often used "like" expression in a table wich looks that wy: "where path like 'RootFolder_FirstSubfolder%'"
by default hibernate only creates an index for the "id" column i defined via annotation.
Are there any recommendations how i could speedup my "like" expression using more indexes?
Thanks very much in advance for helping me
Kind regards
Shannon