Re: indexes and big tables - Mailing list pgsql-hackers

From Robert Vojta
Subject Re: indexes and big tables
Date
Msg-id 20010727150226.N6382@ipex.cz
Whole thread Raw
In response to indexes and big tables  (Robert Vojta <vojta@ipex.cz>)
List pgsql-hackers
> The index is only used for the line= part of the where clause
> with your query. With many rows the "line=" is not selective enough
> to justify the index.
 I tried move only needed data into new table and change query into ...

netacc=> EXPLAIN SELECT counterfrom AS from, counterto AS to,
floor((980000000 - date_part('epoch', counterstamp)) / 300) AS sequence
FROM graphs_5m WHERE line='absolonll'; NOTICE:  QUERY PLAN:
Index Scan using graphs_5m_idx on graphs_5m (cost=0.00..58.38 rows=29
width=24)
EXPLAIN
 and query runs for 3-5 seconds. Any idea how to make it faster? I think,
that now it's ready to HW upgrade for faster result ...

Best regards, Robert

--   _ |-|  __      Robert Vojta <vojta-at-ipex.cz>          -= Oo.oO =- |=| [Ll]     IPEX, s.r.o. "^" ====`o

pgsql-hackers by date:

Previous
From: "Colin 't Hart"
Date:
Subject: Re: Re: Re: Storing XML in PostgreSQL
Next
From: "Leslie"
Date:
Subject: PostgreSQL7.1 on AIX5L is running with too poor ferformance