Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: Group by more efficient than distinct?



PFC writes:

- If you process up to some percentage of your RAM worth of data, hashing is going to be a lot faster

Thanks for the excellent breakdown and explanation. I will try and get sizes of the tables in question and how much memory the machines have.
	- If you need DISTINCT ON, well, you're stuck with the Sort
	- So, for the time being, you can replace DISTINCT with GROUP BY...

Have seen a few of those already on some code (new job..) so for those it is a matter of having a good disk subsystem?



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group