Re: [HACKERS] plperl (7.5)

2004-07-17 Thread Andrew Dunstan
elein wrote: The new plperl returns sets by having the function return an array. This requires that the entire array be built before anything is returned. It seems to me that that does not scale very well. The technique of RETURN NEXT; scales much better. Indeed. For example, you maybe

Re: [HACKERS] plperl (7.5)

2004-07-13 Thread Mike Rylander
posted mailed Tom Lane wrote: Alvaro Herrera [EMAIL PROTECTED] writes: On Sat, Jul 10, 2004 at 09:18:28PM -0700, elein wrote: The new plperl returns sets by having the function return an array. I think RETURN NEXT does the same thing anyway ... they just store tuples in a Tuplestore and

Re: [HACKERS] plperl (7.5)

2004-07-12 Thread Oleg Bartunov
Several years ago me and Teodor have proposed partial sort for top-k ranking result. We have even submitted a very crude patch, but it was rejected. We use partial sorting extensively in our external application and found it's very useful. There are many papers recently published about top-k

Re: [HACKERS] plperl (7.5)

2004-07-11 Thread Tom Lane
Alvaro Herrera [EMAIL PROTECTED] writes: On Sat, Jul 10, 2004 at 09:18:28PM -0700, elein wrote: The new plperl returns sets by having the function return an array. I think RETURN NEXT does the same thing anyway ... they just store tuples in a Tuplestore and then the whole thing is returned.

Re: [HACKERS] plperl (7.5)

2004-07-11 Thread elein
I'll try these in plperl when I get a chance, but there is still a scalability problem. There was some work done at UCB a while back (post-postgres) to try to speed up queries by making the first n rows available quickly. This is based on the googlish idea that people want results fast and

[HACKERS] plperl (7.5)

2004-07-10 Thread elein
The new plperl returns sets by having the function return an array. This requires that the entire array be built before anything is returned. It seems to me that that does not scale very well. The technique of RETURN NEXT; scales much better. For example, you maybe selecting rows, doing a

Re: [HACKERS] plperl (7.5)

2004-07-10 Thread Alvaro Herrera
On Sat, Jul 10, 2004 at 09:18:28PM -0700, elein wrote: The new plperl returns sets by having the function return an array. This requires that the entire array be built before anything is returned. It seems to me that that does not scale very well. The technique of RETURN NEXT; scales