Re: Gsoc2012 Idea --- Social Network database schema

From: Qi Huang <huangqiyx(at)hotmail(dot)com>
To: <andrew(at)dunslane(dot)net>, <alvherre(at)commandprompt(dot)com>
Cc: <tgl(at)sss(dot)pgh(dot)pa(dot)us>, <robertmhaas(at)gmail(dot)com>, <neil(dot)conway(at)gmail(dot)com>, <daniel(at)heroku(dot)com>, <josh(at)agliodbs(dot)com>, <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Gsoc2012 Idea --- Social Network database schema
Date: 2012-03-21 15:48:51
Message-ID: BAY159-W23CA8E42EE8CE5B1975B6CA3400@phx.gbl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> Date: Wed, 21 Mar 2012 11:00:59 -0400
> From: andrew(at)dunslane(dot)net
> To: alvherre(at)commandprompt(dot)com
> CC: tgl(at)sss(dot)pgh(dot)pa(dot)us; robertmhaas(at)gmail(dot)com; huangqiyx(at)hotmail(dot)com; neil(dot)conway(at)gmail(dot)com; daniel(at)heroku(dot)com; josh(at)agliodbs(dot)com; pgsql-hackers(at)postgresql(dot)org
> Subject: Re: [HACKERS] Gsoc2012 Idea --- Social Network database schema
>
>
>
> On 03/21/2012 10:47 AM, Alvaro Herrera wrote:
> > Excerpts from Tom Lane's message of mié mar 21 11:35:54 -0300 2012:
> >
> >> Now that would all be fine if this were a widely-desired feature, but
> >> AFAIR the user demand for it has been about nil. So I'm leaning to
> >> the position that we don't want it.
> > 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)? Maybe we could find some less
> invasive way of avoiding that.
>
> cheers
>
> andrew

Thanks for your discussion and ideas. As I checked, MS SQL Server and DB2 implemented tablesample for now. At least, it is useful for QUICK sample retrieval for large dataset. I suppose this clause itself will be much faster for using random().About implementation, will the code change be really very large? But the general structure should still be about the same, right?
Best Regards and ThanksHuang Qi VictorComputer Science of National University of Singapore

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2012-03-21 15:49:15 Re: Bug: walsender and high CPU usage
Previous Message Tom Lane 2012-03-21 15:34:58 Re: Gsoc2012 Idea --- Social Network database schema