Re: [GENERAL] All writes make postgresql a slow database?
В списке pgsql-general по дате отправления:
| От | Jesse Kipp |
|---|---|
| Тема | Re: [GENERAL] All writes make postgresql a slow database? |
| Дата | |
| Msg-id | 3848426D.45A0445@revbox.com обсуждение исходный текст |
| Ответ на | All writes make postgresql a slow database? ("Lachlan O'Dea" <lodea@vet.com.au>) |
| Список | pgsql-general |
> I'm using Postges to log certain customer activities on our web site - > logins, things like that. I vacuum once a night. Now the database has > grown quite large, the main table alone is 180 Mb. It contains lots and > lots of small rows. > That is a very small database. :) > Anyway, a few minutes ago I ran a single query. After it finished, I > noticed that the CPU usage had dropped dramatically. Like from a load > average of about 5 to about 0.8. Now I'm wondering if the query I ran > was the cause of this. Will postgres slow down if the only operations > being performed are inserts? > What indexes do you have on the table? Having lots of indexes could slow down inserts, but speed up queries. If you don't have any indexes, a query against a 180 meg table could take a while, particularly if you have less then 180 megs of ram. jesse
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера