From: | Herouth Maoz <herouth(at)oumail(dot)openu(dot)ac(dot)il> |
---|---|
To: | "Natalya S(dot) Makushina" <mak(at)rtsoft(dot)msk(dot)ru>, "pgsql-general(at)postgreSQL(dot)org" <pgsql-general(at)postgreSQL(dot)org> |
Subject: | Re: Ô×: [GENERAL] GEQO and KSQO problem. |
Date: | 1999-09-06 15:03:54 |
Message-ID: | l03130305b3f986e213ce@[147.233.159.109] |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
At 17:31 +0300 on 06/09/1999, Natalya S. Makushina wrote:
>
> I can put the part of query outside the parentheses.
...
> But if i increased number of "OR" in query, the server was down and
>worked very,very slowly. I can't see any rezult from optimizer.
> It's very strange thing!
The postgres optimizer was never very good with OR clauses. That's why I
suggested the format with the regular expressions in the end of my message.
I wonder if you can get a better result by using a union:
SELECT .....
WHERE
....
AND lower(SOTRUD.EMAIL) LIKE '%matukin(at)hotmail(dot)com%'
UNION
SELECT .....
WHERE
....
AND lower(SOTRUD.EMAIL) LIKE '%knirti(at)kaluga(dot)ru%'
...
etc.
Also try UNION ALL.
Herouth
--
Herouth Maoz, Internet developer.
Open University of Israel - Telem project
http://telem.openu.ac.il/~herutma
From | Date | Subject | |
---|---|---|---|
Next Message | Sean W. Ellis | 1999-09-06 16:37:04 | Remote Authentication |
Previous Message | Natalya S. Makushina | 1999-09-06 14:31:49 | : [GENERAL] GEQO and KSQO problem. |