Re: how to make this database / query faster

Поиск
Список
Период
Сортировка
От brian
Тема Re: how to make this database / query faster
Дата
Msg-id 47DC6A2C.6040703@zijn-digital.com
обсуждение исходный текст
Ответ на Re: how to make this database / query faster  (mark <markkicks@gmail.com>)
Список pgsql-general
mark wrote:
> On Sat, Mar 15, 2008 at 5:04 PM, brian <brian@zijn-digital.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.

В списке pgsql-general по дате отправления:

Предыдущее
От: mark
Дата:
Сообщение: Re: how to make this database / query faster
Следующее
От: Dave Potts
Дата:
Сообщение: Re: Loging of postgres requests