Re: How to find greatest record before known values fast
В списке pgsql-general по дате отправления:
| От | Andrus |
|---|---|
| Тема | Re: How to find greatest record before known values fast |
| Дата | |
| Msg-id | 0C4A85E2139C4680860B00CB25C598E9@dell2 обсуждение исходный текст |
| Ответ на | Re: How to find greatest record before known values fast (Merlin Moncure <mmoncure@gmail.com>) |
| Список | pgsql-general |
Hi! Thank you. People often looks for different period sales using different filters. There are lot of sales and every sale is individual record in sales table. So increasing sequential scan speed is important. I tried create table t1(v char(100), p numeric(12,5)); create table t2(v varchar(100), p numeric(12,5)); insert into t1 select '', generate_series from generate_series(1,1000000); insert into t2 select '', generate_series from generate_series(1,1000000); and after that measured speed of select sum(p) from t1 and select sum(p) from t2 both of them took approximately 800 ms So it looks like thee is no difference in sequential scan speed and thus no need to change char types. Andrus
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера