From: Andreas Schmidt <andreas.schmidt@uni-tuebingen.de>
To: pgsql-sql@postgresql.org
Subject: Query otimizing possible?
Date: Tue, 25 Aug 1998 11:45:24 -0400
Message-ID: <35E2DC13.E273AF6@uni-tuebingen.de> (raw)
Hello,
I am workíng with Postgres95, and querys like
select * from lit_b where i1='n78' or il='ng798' or il='k45'
works very slow. There is an index on il, but it is obviously
used only when there is only one il='dd69' statement. For
example the time for doing the query increases from 3 seconds
to 3 minutes when using 2 il='dd69' statements. In this case the
class seems to be searched sequently.
Does anybody know a workaround for this Problem?
Thanks in advance
Andreas
--
****************************************************************
* Andreas Schmidt
* Institut fuer Kriminologie
* Corrensstr. 34
* 72076 Tuebingen/Germany
* Telefon: +49 -7071-72040
* Fax : +49-7071-65104
* e-mail : andreas.schmidt@uni-tuebingen.de
* URL : http://www.jura.uni-tuebingen.de/~ifk/index.html
****************************************************************
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: andreas.schmidt@uni-tuebingen.de
Subject: Re: Query otimizing possible?
In-Reply-To: <35E2DC13.E273AF6@uni-tuebingen.de>
References: <35E2DC13.E273AF6@uni-tuebingen.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox