Re: [GENERAL] design help for performance

2011-12-21 Thread Misa Simic
Sent: 21 December 2011 22:07 To: Marc Mamin Cc: Alban Hertroys; pgsql-general@postgresql.org Subject: Re: [GENERAL] design help for performance Thank you so much everyone! Introducing table C was indeed my next step but I was unsure if I was going to be just moving the locking problems from A

Re: [GENERAL] design help for performance

2011-12-21 Thread Culley Harrelson
lto:pgsql-general- > > ow...@postgresql.org] On Behalf Of Alban Hertroys > > Sent: Mittwoch, 21. Dezember 2011 08:53 > > To: Culley Harrelson > > Cc: pgsql-general@postgresql.org > > Subject: Re: [GENERAL] design help for performance > > > > On 21 Dec 2011, at

Re: [GENERAL] design help for performance

2011-12-21 Thread Marc Mamin
> -Original Message- > From: pgsql-general-ow...@postgresql.org [mailto:pgsql-general- > ow...@postgresql.org] On Behalf Of Alban Hertroys > Sent: Mittwoch, 21. Dezember 2011 08:53 > To: Culley Harrelson > Cc: pgsql-general@postgresql.org > Subject: Re: [GEN

Re: [GENERAL] design help for performance

2011-12-20 Thread Alban Hertroys
On 21 Dec 2011, at 24:56, Culley Harrelson wrote: > Several years ago I added table_b_rowcount to table A in order to minimize > queries on table B. And now, as the application has grown, I am starting to > having locking problems on table A. Any change to table B requires the that > table_b_

Re: [GENERAL] design help for performance

2011-12-20 Thread Culley Harrelson
** ** > > David J. > > ** ** > > *From:* pgsql-general-ow...@postgresql.org [mailto: > pgsql-general-ow...@postgresql.org] *On Behalf Of *Misa Simic > *Sent:* Tuesday, December 20, 2011 7:13 PM > *To:* Culley Harrelson; pgsql-general@postgresql.org > *Subject:* Re: [G

Re: [GENERAL] design help for performance

2011-12-20 Thread David Johnston
Subject: Re: [GENERAL] design help for performance Hi Culley, Have you tried to create fk together with index on fk column on table B? What are results? Would be good if you could send the query and explain analyze... Sent from my Windows Phone _ From: Culley Harrelson Sent: 21 December

Re: [GENERAL] design help for performance

2011-12-20 Thread Misa Simic
-general@postgresql.org Subject: [GENERAL] design help for performance I am bumping into some performance issues and am seeking help. I have two tables A and B in a one (A) to many (B) relationship. There are 1.4 million records in table A and 44 million records in table B. In my web application any

[GENERAL] design help for performance

2011-12-20 Thread Culley Harrelson
I am bumping into some performance issues and am seeking help. I have two tables A and B in a one (A) to many (B) relationship. There are 1.4 million records in table A and 44 million records in table B. In my web application any request for a record from table A is also going to need a count of