Re: simple update queries take a long time - postgres 8.3.1
В списке pgsql-general по дате отправления:
| От | Raymond O'Donnell |
|---|---|
| Тема | Re: simple update queries take a long time - postgres 8.3.1 |
| Дата | |
| Msg-id | 47F13A2D.2000607@iol.ie обсуждение исходный текст |
| Ответ на | simple update queries take a long time - postgres 8.3.1 (mark <markkicks@gmail.com>) |
| Ответы |
Re: simple update queries take a long time - postgres 8.3.1
|
| Список | pgsql-general |
On 31/03/2008 20:16, mark wrote: > is the query I am running , and it takes over 10 seconds to complete > this query... > > > update users set number_recieved=number_recieved+1 where uid=738889333; > > table has about 1.7 million rows.. i have an index on column uid and > also on number_received. .. this is also slowing down the inserts that > happen. Are you VACUUMing the table regularly? Also, can you show us the EXPLAIN ANALYZE output from the query? Ray. --------------------------------------------------------------- Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland rod@iol.ie ---------------------------------------------------------------
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера