| От | Andrew Sullivan |
|---|---|
| Тема | Re: INSERT waiting under heavy load |
| Дата | |
| Msg-id | 20060108182114.GA31582@phlogiston.dyndns.org обсуждение исходный текст |
| Ответ на | Re: INSERT waiting under heavy load (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-sql |
On Fri, Jan 06, 2006 at 04:49:09PM -0500, Tom Lane wrote: > performance risk in the sort of scenario you are describing. > (I'm not sure why it would manifest as transactions showing "INSERT > waiting" state though.) It's because of I/O. When you have a large number of updates, the planner always assumes an indexscan (correctly), but you end up scanning megabytes of dead tuples. With a large number of open transactions, most of the time VACUUM can't recover the space. I agree with what Tom said earlier in this thread: the design is guaranteed to lose. A -- Andrew Sullivan | ajs@crankycanuck.ca "The year's penultimate month" is not in truth a good way of saying November. --H.W. Fowler
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера