random_page_cost = 4.0
seq_page_cost = 1.0 There is about 500,000 rows and about 500 new rows each business day. About 96% of rows meet given conditions, that is, count shoud be about 480,000. BR, Grzegorz Olszewski Date: Tue, 27 May 2014 14:14:21 -0700 Subject: Re: [PERFORM] Planner doesn't take indexes into account From: rummandba@xxxxxxxxx To: grzegorz.olszewski@xxxxxxxxxxx CC: pgsql-performance@xxxxxxxxxxxxxx What is random_page_cost and seq_page_cost in your server? And how many rows does the table have? On Tue, May 27, 2014 at 2:09 PM, Grzegorz Olszewski <grzegorz.olszewski@xxxxxxxxxxx> wrote:
|