indexing and LIKE
От | Patrik Kudo |
---|---|
Тема | indexing and LIKE |
Дата | |
Msg-id | 20011011141651.B50778-100000@tb303.partitur.se обсуждение исходный текст |
Ответы |
Re: indexing and LIKE
Re: indexing and LIKE |
Список | pgsql-sql |
Hi! If I want to be able to search for stringmatches using LIKE, doing something like the following: select id, name from table1 where lower(name) like 'somestring%'; Actually I will be joining with some other table on id too, but the join will produce a substancial amount of data to be filtered with the LIKE clause so I figure if it'd be possible to index on lower(name) somehow, it would result in an appreciated speed gain. Is it at all possible to create an index on lower(name), and in that case, what type of index and using what syntax? Is it possible to create a multicolumn index on both id and name? Both id and name are of type "text". TIA, Patrik Kudo
В списке pgsql-sql по дате отправления: