Query advice request - Mailing list pgsql-novice

From Mark Kelly
Subject Query advice request
Date
Msg-id 201010091709.56372.pgsql@wastedtimes.net
Whole thread Raw
Responses Re: Query advice request  (Mladen Gogala <mladen.gogala@vmsinfo.com>)
List pgsql-novice
Hi.

I'm wondering if there is a better way to do this:

SELECT news.id FROM news
WHERE news.headline ~* '(japan|office)'
OR news.body ~* '(japan|office)'
ORDER BY news.posted DESC;

It is for small articles; a few hundred or so rows in the table and not
expecting millions.

Cheers,

Mark

pgsql-novice by date:

Previous
From: Mark Kelly
Date:
Subject: Re: MySQL --> PostgreSQL with PHP
Next
From: Mladen Gogala
Date:
Subject: Re: Query advice request