| От | ach |
|---|---|
| Тема | statistics target for columns in unique constraint? |
| Дата | |
| Msg-id | 1368457293547-5755256.post@n5.nabble.com обсуждение |
| Ответы |
Re: statistics target for columns in unique constraint?
|
| Список | pgsql-performance |
I have a unique constraint on two columns of a supermassive table (est. 1.7 bn rows) that are the only way the table's ever queried - and it's blindingly fast: 51ms to retrieve any single row even non-partitioned. Anyway: Right now statistics on the two unique constrained columns are set to 200 each (database-wide default is 100), and what I'm wondering is, since the unique constraint already covers the whole table and all rows in entirety, is it really necessary for statistics to be set that high on those? Or does that only serve to slow down inserts to that table? -- View this message in context: http://postgresql.1045698.n5.nabble.com/statistics-target-for-columns-in-unique-constraint-tp5755256.html Sent from the PostgreSQL - performance mailing list archive at Nabble.com.
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера