Use a gist index. Easiest way would be to define a box with mindate at
one corner and maxdate at the other corner, and then search for
point(obsdate,obsdate) that lie with in the box.
A more detailed explination is in the archives somewhere...
On Sun, Feb 19, 2006 at 08:06:12PM -0800, [EMAIL PROT
this trick did the job. thanks.On 2/21/06, Alvaro Herrera <[EMAIL PROTECTED]> wrote:
Scott Marlowe wrote:> On Tue, 2006-02-21 at 09:57, Ibrahim Tekin wrote:> > hi,
> > i have btree index on a text type field. i want see rows which starts> > with certain characters on that field. so i write a query
I am running 7.4.8 and have a query that I have been running for a while
that has recently have experienced a slowdown. The original query
involves a UNION but I have narrowed it down to this half of the query
as being my issue. (The other half take 4 seconds).
The only issue that I have had is
my database encoding is unicode.
i have two table, one is 3.64gb on hdd and has 2.2 million records. it takes 140 secs to run on my AMD Turion 64 M 800MHz/1GB laptop.second table is 1.2gb, 22 records, and takes 56 secs to run.explain says 'Seq Scan on mytable, ..'
On 2/21/06, [EMAIL PROTECTED]
On Tue, Feb 21, 2006 at 05:57:12PM +0200, Ibrahim Tekin wrote:
> i have btree index on a text type field. i want see rows which starts with
> certain characters on that field. so i write a query like this:
> SELECT * FROM mytable WHERE myfield LIKE 'john%'
> since this condition is from start o
On Tue, 2006-02-21 at 10:34, Alvaro Herrera wrote:
> Scott Marlowe wrote:
> > On Tue, 2006-02-21 at 09:57, Ibrahim Tekin wrote:
> > > hi,
> > > i have btree index on a text type field. i want see rows which starts
> > > with certain characters on that field. so i write a query like this:
> > >
> >
Scott Marlowe wrote:
> On Tue, 2006-02-21 at 09:57, Ibrahim Tekin wrote:
> > hi,
> > i have btree index on a text type field. i want see rows which starts
> > with certain characters on that field. so i write a query like this:
> >
> > SELECT * FROM mytable WHERE myfield LIKE 'john%'
> >
> > sinc
On Tue, 2006-02-21 at 09:57, Ibrahim Tekin wrote:
> hi,
> i have btree index on a text type field. i want see rows which starts
> with certain characters on that field. so i write a query like this:
>
> SELECT * FROM mytable WHERE myfield LIKE 'john%'
>
> since this condition is from start of the
hi,i have btree index on a text type field. i want see rows which starts with certain characters on that field. so i write a query like this:SELECT * FROM mytable WHERE myfield LIKE 'john%'since this condition is from start of the field, query planner should use index to find such elements but expl