design help for performance

Поиск
Список
Период
Сортировка
От Culley Harrelson
Тема design help for performance
Дата
Msg-id CAAPtAvRwr1w2Zvyyv3aOTK7RJ9Bm1Tuq-kmQtt77upPcm7QYYg@mail.gmail.com
обсуждение исходный текст
Ответы Re: design help for performance  (Alban Hertroys <haramrae@gmail.com>)
Список pgsql-general
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 associated records in table B.  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_rowcount be updated on table A...  The application has outgrown this solution.

So... is there a common solution to this problem?

culley

В списке pgsql-general по дате отправления:

Предыдущее
От: Josh Kupershmidt
Дата:
Сообщение: Re: Escaping input from COPY
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: PostgreSQL server architecture