Search Postgresql Archives

Re: [PERFORM] "Hash index" vs. "b-tree index" (PostgreSQL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Added to TODO:

* Consider sorting hash buckets so entries can be found using a binary
  search, rather than a linear scan
* In hash indexes, consider storing the hash value with or instead
  of the key itself


---------------------------------------------------------------------------

Neil Conway wrote:
> Bruce Momjian wrote:
> > Is there a TODO anywhere in this discussion?  If so, please let me know.
> 
> There are a couple:
> 
> - consider changing hash indexes to keep the entries in a hash bucket 
> sorted, to allow a binary search rather than a linear scan
> 
> - consider changing hash indexes to store each key's hash value in 
> addition to or instead of the key value.
> 
> You should probably include a pointer to this discussion as well.
> 
> (I'd like to take a look at implementing these if I get a chance.)
> 
> -Neil
> 

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@xxxxxxxxxxxxxxxx               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux