| От | Frank Morton |
|---|---|
| Тема | Faster LIKE |
| Дата | |
| Msg-id | 029901be4490$147c4360$8355e5ce@base2inc.com обсуждение |
| Список | pgsql-sql |
I have an image database with keywords assigned to each record in the field "keywords" and often do: select * from images where keywords like 'dog'; which works great with a small database, but slows down quickly with a large database. since the "keywords" field can have multiple entries, such as 'dog mammals fuzzy small' I was considering creating a separate keywords table where each word was an individual row and could therefore be indexed and fast. however, in the above example, I would like to match on "mammal" also (i.e., no "s" on the end) or any substring within the field, so the separate table does not do it either. This has to be a common thing. Are there any good solutions or research out there to solve this problem? Thanks.
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера