pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Lefteris <lsidir@gmail.com>
To: Alvaro Herrera <alvherre@commandprompt.com>
Cc: Jochen Erwied <jochen@pgsql-performance.erwied.eu>
Cc: pgsql-performance@postgresql.org
Subject: Re: Air-traffic benchmark
Date: Thu, 7 Jan 2010 15:23:24 +0100
Message-ID: <852badbc1001070623m5d901c42k50bb808409141ca4@mail.gmail.com> (raw)
In-Reply-To: <20100107141423.GC4315@alvh.no-ip.org>
References: <852badbc1001070438j36eb10d3qa22398ffcbef405f@mail.gmail.com>
	<4B45E36E.4040706@tweakers.net>
	<852badbc1001070547p48b47175vf87efc473e3bd41b@mail.gmail.com>
	<26014999.20100107150535@erwied.eu>
	<852badbc1001070610p698dc3cfr4628b1e7768990e6@mail.gmail.com>
	<20100107141423.GC4315@alvh.no-ip.org>

On Thu, Jan 7, 2010 at 3:14 PM, Alvaro Herrera
<alvherre@commandprompt.com> wrote:
> Lefteris escribió:
>> Yes, I am reading the plan wrong! I thought that each row from the
>> plan reported the total time for the operation but it actually reports
>> the starting and ending point.
>>
>> So we all agree that the problem is on the scans:)
>>
>> So the next question is why changing shared memory buffers will fix
>> that? i only have one session with one connection, do I have like many
>> reader workers or something?
>
> No amount of tinkering is going to change the fact that a seqscan is the
> fastest way to execute these queries.  Even if you got it to be all in
> memory, it would still be much slower than the other systems which, I
> gather, are using columnar storage and thus are perfectly suited to this
> problem (unlike Postgres).  The talk about "compression ratios" caught
> me by surprise until I realized it was columnar stuff.  There's no way
> you can get such high ratios on a regular, row-oriented storage.
>
> --
> Alvaro Herrera                                http://www.CommandPrompt.com/
> PostgreSQL Replication, Consulting, Custom Development, 24x7 support
>

I am aware of that and I totally agree. I would not expect from a row
store to have the same performance with a column. I was just trying to
double check that all settings are correct because usually you have
difference of seconds and minutes between column-rows, not seconds and
almost an hour (for queries Q2-Q8).

I think what you all said was very helpful and clear! The only part
that I still disagree/don't understand is the shared_buffer option:))

Lefteris



view thread (34+ messages)  latest in thread

Message-ID: <852badbc1001070623m5d901c42k50bb808409141ca4@mail.gmail.com>
Permalink:  ../852badbc1001070623m5d901c42k50bb808409141ca4@mail.gmail.com/
Also on:    postgresql.org/message-id/852badbc1001070623m5d901c42k50bb808409141ca4@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: lsidir@gmail.com, alvherre@commandprompt.com, jochen@pgsql-performance.erwied.eu
  Subject: Re: Air-traffic benchmark
  In-Reply-To: <852badbc1001070623m5d901c42k50bb808409141ca4@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox