Hi, I have a table with varchar and text columns, and I have to search through these text in the whole table. An example would be: SELECT * FROM table WHERE name like '%john%' or street like '%srt%' Anyway, the query planner always does seq scan on the whole table and that takes some time. How can this be optimized or made in another way to be faster? I tried to make indexes on the columns but no success. PG 8.2 Regards, Andy.
- [PERFORM] LIKE search and performance Andy
- Re: [PERFORM] LIKE search and performance Richard Huxton
- Re: [PERFORM] LIKE search and performance Guido Neitzer
- Re: [PERFORM] LIKE search and performance Alexander Staubo
- Re: [PERFORM] LIKE search and performance James Mansion
- Re: [PERFORM] LIKE search and performance Magnus Hagander
- Re: [PERFORM] LIKE search and performanc... James Mansion
- Re: [PERFORM] LIKE search and perfo... Mark Lewis
- Re: [PERFORM] LIKE search and p... Craig James
- Re: [PERFORM] LIKE search a... Alvaro Herrera
- Re: [PERFORM] LIKE search a... Craig James