Search Postgresql Archives

Re: [HACKERS] optimization join on random value

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 );



--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux