Re: [HACKERS] optimization join on random value

From: Anton <djeday84(at)gmail(dot)com>
To: Jim Nasby <Jim(dot)Nasby(at)BlueTreble(dot)com>, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: [HACKERS] optimization join on random value
Date: 2015-05-04 08:48:02
Message-ID: 55473242.2000908@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Yahooo !
Many thanks !

soe=# explain EXECUTE test( random()*45000 );
QUERY PLAN
-------------------------------------------------------------------------------------
Index Scan using addresses_cust_ix on addresses (cost=0.43..16.48
rows=3 width=84)
Index Cond: (customer_id = 13117::bigint)

On 04.05.2015 05:10, Jim Nasby wrote:
> PREPARE test AS SELECT ... WHERE customer_id = $1;
> EXECUTE test( random()*45000 );

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Hannes Erven 2015-05-04 10:31:10 Re: Errors using JDBC batchUpdate with plpgsql function
Previous Message sanjeetkamble 2015-05-04 07:02:29 Re: Setting up a database for 10000 concurrent users

Browse pgsql-hackers by date

  From Date Subject
Next Message Petr Korobeinikov 2015-05-04 09:21:43 psql :: support for \ev viewname and \sv viewname
Previous Message Bernd Helmle 2015-05-04 08:36:20 Re: Disabling trust/ident authentication configure option