Re: What constitutes a complex query

Поиск
Список
Период
Сортировка
От Richard Broersma
Тема Re: What constitutes a complex query
Дата
Msg-id 396486430805060958x31dd63ffu994493f68d8e828f@mail.gmail.com
обсуждение исходный текст
Ответ на Re: What constitutes a complex query  ("Scott Marlowe" <scott.marlowe@gmail.com>)
Список pgsql-performance
On Tue, May 6, 2008 at 9:41 AM, Scott Marlowe <scott.marlowe@gmail.com> wrote:
> I'd say that the use of correlated subqueries qualifies a query as
> complicated.  Joining on non-usual pk-fk stuff.  the more you're
> mashing one set of data against another, and the odder the way you
> have to do it, the more complex the query becomes.

I would add that data analysis queries that have multiple level of
aggregation analysis can be complicated also.

For example, in a table of racer times find the average time for each
team while only counting teams whom at least have greater than four
team members and produce an ordered list displaying the ranking for
each team according to their average time.


--
Regards,
Richard Broersma Jr.

Visit the Los Angles PostgreSQL Users Group (LAPUG)
http://pugs.postgresql.org/lapug

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

Предыдущее
От: Steve Atkins
Дата:
Сообщение: Re: What constitutes a complex query
Следующее
От: Dennis Muhlestein
Дата:
Сообщение: Possible Redundancy/Performance Solution