Re: Performace comparison of indexes over timestamp fields
В списке pgsql-performance по дате отправления:
| От | Steinar H. Gunderson |
|---|---|
| Тема | Re: Performace comparison of indexes over timestamp fields |
| Дата | |
| Msg-id | 20070522124320.GA24779@uio.no обсуждение |
| Ответ на | Re: Performace comparison of indexes over timestamp fields ("Alexander Staubo" <alex@purefiction.net>) |
| Ответы |
Re: Performace comparison of indexes over timestamp fields
|
| Список | pgsql-performance |
On Tue, May 22, 2007 at 02:39:33PM +0200, Alexander Staubo wrote: > PostgreSQL uses B-tree indexes for scalar values. For an expression > such as "t between a and b", I believe it's going to match both sides > of the table independently (ie., t >= a and t <= b) and intersect > these subsets. This is inefficient. A B-tree index can satisfy range queries such as this. > You should get better performance by mapping timestamps to a > one-dimensional plane and indexing them using GiST. GiST implements an > R-tree-like structure that supports bounding-box searches. You may be thinking of interval overlaps? /* Steinar */ -- Homepage: http://www.sesse.net/
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера