| От | H.J. Sanders |
|---|---|
| Тема | date - range |
| Дата | |
| Msg-id | KIEBKBGIGGNDKKJJNKCFKEPLEEAA.hjs@rmax.nl обсуждение исходный текст |
| Ответы |
Re: date - range
Re: date - range |
| Список | pgsql-performance |
Anybody a solution for the next problem: people can subscribe to a service for 1 or more days (upto a max. of 365). So in the database is stored: first_date and last_date To select which people are subscribed for a certain date (e.g. today) we use a select like select ....... where first_date <= today and last_date >= today Whatever index we create system always does a sequential scan (which I can understand). Has someone a smarter solution? All suggestions will be welcomed.
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера