| От | Tom Lane |
|---|---|
| Тема | Re: Best way to index IP data? |
| Дата | |
| Msg-id | 28998.1200099079@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Best way to index IP data? (Pomarede Nicolas <npomarede@corp.free.fr>) |
| Список | pgsql-performance |
Pomarede Nicolas <npomarede@corp.free.fr> writes:
> And it's true for IPv6 too, storing an IP that refer to an end point and
> not a subnet is requiring twice as much data as needed, because the
> netmask would always be ff:ff:ff:..:ff
> So, for people dealing with large database of IPs, it would be nice to be
> able to save 50% of the corresponding disk/cache/ram space for these IPs.
There seem to be a number of people in this thread laboring under the
illusion that we store a netmask as a mask. It's a bit count (think
/32 or /128) and occupies a whole one byte on disk. Killer overhead,
for sure.
regards, tom lane
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера