Re: [HACKERS] mal advice in FAQ 4.1.

2007-10-09 Thread Pavel Stehule
2007/10/9, Martijn van Oosterhout <[EMAIL PROTECTED]>: > On Tue, Oct 09, 2007 at 06:40:23PM +0200, Pavel Stehule wrote: > > It needs always seq scan :(, and take space on buffer cache. Solution > > based on random generated PK are much faster. I collaborate with one > > my customer. He shows random

Re: [HACKERS] mal advice in FAQ 4.1.

2007-10-09 Thread Martijn van Oosterhout
On Tue, Oct 09, 2007 at 06:40:23PM +0200, Pavel Stehule wrote: > It needs always seq scan :(, and take space on buffer cache. Solution > based on random generated PK are much faster. I collaborate with one > my customer. He shows random products from 10K products on every page > of one eShop. And h

Re: [HACKERS] mal advice in FAQ 4.1.

2007-10-09 Thread Pavel Stehule
2007/10/9, Gregory Stark <[EMAIL PROTECTED]>: > "Nikolay Samokhvalov" <[EMAIL PROTECTED]> writes: > > > Hubert recently posted his thoughts on this topic: > > http://www.depesz.com/index.php/2007/09/16/my-thoughts-on-getting-random-row/ > > > > I've encountered with this problem several times in we

Re: [HACKERS] mal advice in FAQ 4.1.

2007-10-09 Thread Gregory Stark
"Nikolay Samokhvalov" <[EMAIL PROTECTED]> writes: > Hubert recently posted his thoughts on this topic: > http://www.depesz.com/index.php/2007/09/16/my-thoughts-on-getting-random-row/ > > I've encountered with this problem several times in web development and > every time found out that the best (i

Re: [HACKERS] mal advice in FAQ 4.1.

2007-10-09 Thread Pavel Stehule
2007/10/9, Nikolay Samokhvalov <[EMAIL PROTECTED]>: > Hubert recently posted his thoughts on this topic: > http://www.depesz.com/index.php/2007/09/16/my-thoughts-on-getting-random-row/ > > I've encountered with this problem several times in web development and > every time found out that the best (

Re: [HACKERS] mal advice in FAQ 4.1.

2007-10-09 Thread Nikolay Samokhvalov
Hubert recently posted his thoughts on this topic: http://www.depesz.com/index.php/2007/09/16/my-thoughts-on-getting-random-row/ I've encountered with this problem several times in web development and every time found out that the best (in terms of performance) solution is to use some pseudo rando