Skip site navigation (1) Skip section navigation (2)

Re: Major performance problem after upgrade from 8.3 to 8.4

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: Andreas Kretschmer <akretschmer(at)spamfence(dot)net>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Major performance problem after upgrade from 8.3 to 8.4
Date: 2010-08-30 07:34:36
Message-ID: AANLkTi=Te9ToTG-bqVy+fHQ0wM1YWv0nhBqqYiTk2ePg@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-performance
Hello

2010/8/30 Andreas Kretschmer <akretschmer(at)spamfence(dot)net>:
> Gerhard Wiesinger <lists(at)wiesinger(dot)com> wrote:
>
>> I know that the data model is key/value pairs but it worked well in 8.3.
>> I need this flexibility.
>>
>> Any ideas?
>
> If i understand the query correctly it's a pivot-table, right?
>

no - it's just EAV table on very large data :(

Regards

Pavel Stehule

> If yes, and if i where you, i would try to rewrite this query, to
> something like:
>
> select
>  timestamp,
>  sum (case when keyid = 1 then value else 0 end) as Raumsolltemperatur,
>  ...
> from
>  log
> group by
>  timestamp;
>
>
> Assuming you can read a german text:
> http://www.pg-forum.de/h-ufig-gestellte-fragen-faq/4067-faq-zeilen-zu-spalten.html
>
>
>
> Andreas
> --
> Really, I'm not out to destroy Microsoft. That will just be a completely
> unintentional side effect.                              (Linus Torvalds)
> "If I was god, I would recompile penguin with --enable-fly."   (unknown)
> Kaufbach, Saxony, Germany, Europe.              N 51.05082°, E 13.56889°
>
> --
> Sent via pgsql-performance mailing list (pgsql-performance(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-performance
>

In response to

Responses

pgsql-performance by date

Next:From: Gerhard WiesingerDate: 2010-08-30 07:48:14
Subject: Re: Major performance problem after upgrade from 8.3 to 8.4
Previous:From: Scott MarloweDate: 2010-08-30 07:34:02
Subject: Re: Major performance problem after upgrade from 8.3 to 8.4

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group