Re: [SQL] Need to improve performance

2000-06-23 Thread Mitch Vincent
> vacuum; > vacuum analyze; > select f1.id from app_fti f1, app_fti f2 where f1.string~*'visual' and > f2.string~*'basic' and f1.id=f2.id; Use ~*'^basic' It will use the indexes I believe. Also, enable likeplanning (look in contrib/likeplanning) -- it will speed things up too.. If that doesn't h

[SQL] Need to improve performance

2000-06-23 Thread Vassili A Akimov
Hallo, My name is Vassili Akimov. I work with postgres, we maintain the main database for our sponsors on it. One of thier requirements,- perform the search through the long text field. Sometimes this field even exceeds 32k so we cut off the rest. But search trough this long field is too slow. (