Re: Slow query, where am I going wrong? - Mailing list pgsql-performance

From AndyG
Subject Re: Slow query, where am I going wrong?
Date
Msg-id 1351675103112-5730140.post@n5.nabble.com
Whole thread Raw
In response to Re: Slow query, where am I going wrong?  ("Albe Laurenz" <laurenz.albe@wien.gv.at>)
Responses Re: Slow query, where am I going wrong?  ("Albe Laurenz" <laurenz.albe@wien.gv.at>)
List pgsql-performance
Albe Laurenz *EXTERN* wrote
> Increasing the statistics for test_result.id_recipe_version
> had no effect?
>
>> I am going to normalize the table some more before partitioning.
>
> How do you think that partitioning will help?

I increased the statistics in steps up to 5000 (with vacuum analyse) - Seems
to be as good as it gets.

http://explain.depesz.com/s/z2a

The simulated data is about a months worth. Partitioning is only really
expected to help on insert, but that's pretty critical for us.

At the moment test_item contains way too much repeated data IMHO, and I will
address that asap (is going to hurt ).

I will also look into creating an aggregate table to hold the 'distinct'
values.

Andy.





--
View this message in context:
http://postgresql.1045698.n5.nabble.com/Slow-query-where-am-I-going-wrong-tp5730015p5730140.html
Sent from the PostgreSQL - performance mailing list archive at Nabble.com.


pgsql-performance by date:

Previous
From: Scott Marlowe
Date:
Subject: Re: How to keep queries low latency as concurrency increases
Next
From: "Albe Laurenz"
Date:
Subject: Re: Slow query, where am I going wrong?