문제

At the moment I am playing with possibilities of great pg_search gem and differences between scope search and multisearch.

pg_search_scope seems more elegant solution which I would like to use, but I am interested in performance since I don't see any indexes built for this (unlike mutlisearch), what can I expect should I index columns I use manually? Any toughs?

Thanks all

도움이 되었습니까?

해결책

pg_search just generates the queries, so adding GIN or GIST indexes to your columns should help performance, but then based on the combinations of searches that you are doing, the exact indexes that you will need to add will vary. A discussion that might help is here - https://github.com/Casecommons/pg_search/issues/15

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top