Skip site navigation (1) Skip section navigation (2)

Re: Using LIMIT changes index used by planner

From: Pierre-Frédéric Caillaud <lists(at)boutiquenumerique(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: Using LIMIT changes index used by planner
Date: 2004-12-24 02:05:59
Message-ID: opsjhpf9t8cq72hf@musicbox (view raw, whole thread or download thread mbox)
Lists: pgsql-performance
On Mon, 13 Dec 2004 17:43:07 -0500, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> Sven Willenberger <sven(at)dmv(dot)com> writes:
>> explain analyze select storelocation,order_number from custacct where
>> referrer = 1365  and orderdate between '2004-12-07' and '2004-12-07
>> 12:00:00' order by custacctid limit 10;

	why not create an index on referrer, orderdate ?

In response to

pgsql-performance by date

Next:From: Pierre-Frédéric CaillaudDate: 2004-12-24 02:19:27
Subject: Re: Caching of Queries
Previous:From: Pierre-Frédéric CaillaudDate: 2004-12-24 01:47:40
Subject: Re: LIMIT causes SEQSCAN in subselect

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group