Re: how to make this database / query faster

From: brian <brian(at)zijn-digital(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: how to make this database / query faster
Date: 2008-03-16 00:30:36
Message-ID: 47DC6A2C.6040703@zijn-digital.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

mark wrote:
> On Sat, Mar 15, 2008 at 5:04 PM, brian <brian(at)zijn-digital(dot)com> wrote:
>>
>> As there's an index on id would it be faster to transpose the WHERE
>> conditions?
>>
>> WHERE id > your_last_id
>> AND session_key IS NOT NULL
>>
>> I can't remember if the order of WHERE is significant.
>
> brian,
> i have an index on session_key also
>

Yeah, I should have asked, "If there's just the index on id ..."

> but i dont have a session key combined on both. should i do that?

I'll defer to someone with more insight.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Dave Potts 2008-03-16 01:39:12 Re: Loging of postgres requests
Previous Message mark 2008-03-16 00:28:38 Re: how to make this database / query faster