>
> Thank you gentelmen! It seems that regexp was the reason! I enabled
> likeplanning and it i=didn't improve the performance until I replaced '~*' with
> 'LIKE'. Thank you again!
The issue is that ~ and LIKE have similar performance. ~* is
case-insensitive, and can not used indexes.
Andrew Snow wrote:
> > So we were advised to use "fulltextindex".- chunk
> > this fields on single words and make new table with words and oids in
> > it. After we made this table its size was 2940360 records. And I tried
> > to measure the time:
> >
> >
> >
> > select f1.id from app_fti f1