Re: Query Performance question

From: "Tomas Vondra" <tv(at)fuzzy(dot)cz>
To: "Magers, James" <James(dot)Magers(at)turner(dot)com>
Cc: "Tomas Vondra" <tv(at)fuzzy(dot)cz>, "Thomas Kellerer" <spam_eater(at)gmx(dot)net>, "pgsql-performance(at)postgresql(dot)org" <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Query Performance question
Date: 2014-07-14 16:28:50
Message-ID: cd6e01a422112f2570964d827a34af4f.squirrel@sq.gransy.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On 14 Červenec 2014, 18:02, Magers, James wrote:
> Tomas,
>
> Thank you for the recommendation. In this case, The bitmap scan runs
> quite quickly, however in production were data may or may not be cached
> and at higher volumes I am trying to ensure the process will continue to
> execute efficiently and reduce the impact of the process on other
> processes running against the database.

That's why it's important to do the testing with representative amount of
data. Testing the queries on significantly reduced dataset is pointless,
because the optimizer will do different decisions.

> My assessment is based on my experiences with the scans. Does your
> experience provide you with a different assessment of the scan types and
> how efficient they may be?

No. Because I don't have your data. And it seems that your assessment is
based on experience with dataset that's very different from your expected
production dataset, which means the experience is not directly applicable.
The optimizer considers the size of the dataset when choosing the plan.

regards
Tomas

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Magers, James 2014-07-14 17:15:54 Re: Query Performance question
Previous Message Magers, James 2014-07-14 16:02:13 Re: Query Performance question