Re: Gsoc2012 Idea --- Social Network database schema

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Gsoc2012 Idea --- Social Network database schema
Дата
Msg-id 1366.1332343773@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Gsoc2012 Idea --- Social Network database schema  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> On 03/21/2012 10:47 AM, Alvaro Herrera wrote:
>> I disagree with there being zero interest ... the "order by random()"
>> stuff does come up occasionally.

> Presumably the reason that's not good enough is that is scans the whole 
> table (as well as being non-portable)?

The reason I'm concerned about the implementation effort is precisely
that I'm afraid people will have high expectations for the intelligence
of the feature.  If it's not materially better than you can get today
with "order by random()", it's not worth doing.  That will mean for
example that it can't just be something we bolt onto seqscans and be
done with --- it'll need to interact with indexscans, maybe joins, etc
etc.  And no shortcuts on the quality of the sampling, either.
        regards, tom lane


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Finer Extension dependencies
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: Proposal: PL/pgPSM for 9.3