From: | "Relaxin" <noname(at)spam(dot)com> |
---|---|
To: | pgsql-performance(at)postgresql(dot)org |
Subject: | Re: SELECT's take a long time compared to other DBMS |
Date: | 2003-09-05 02:13:30 |
Message-ID: | bj8rfn$1hep$1@news.hub.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
Thank you Christopher.
> Change fsync to true (you want your data to survive, right?) and
> increase shared buffers to something that represents ~10% of your
> system memory, in blocks of 8K.
I turned it off just in the hope that things would run faster.
> None of this is likely to substantially change the result of that one
> query, however, and it seems quite likely that it is because
> PostgreSQL is honestly returning the whole result set of ~100K rows at
> once, whereas the other DBMSes are probably using cursors to return
> only the few rows of the result that you actually looked at.
Finally, someone who will actually assume/admit that it is returning the
entire result set to the client.
Where as other DBMS manage the records at the server.
I hope PG could fix/enhance this issue.
There are several issues that's stopping our company from going with PG
(with paid support, if available), but this seems to big the one at the top
of the list.
The next one is the handling of BLOBS. PG handles them like no other system
I have ever come across.
After that is a native Windows port, but we would deal cygwin (for a very
little while) if these other issues were handled.
Thanks
"Christopher Browne" <cbbrowne(at)acm(dot)org> wrote in message
news:m3fzjc58ll(dot)fsf(at)chvatal(dot)cbbrowne(dot)com(dot)(dot)(dot)
> A long time ago, in a galaxy far, far away, "Relaxin" <noname(at)spam(dot)com>
wrote:
> >> Have you changed any of the settings yet in postgresql.conf,
> >> specifically the shared_buffers setting?
> >
> > fsync = false
> > tcpip_socket = true
> > shared_buffers = 128
>
> Change fsync to true (you want your data to survive, right?) and
> increase shared buffers to something that represents ~10% of your
> system memory, in blocks of 8K.
>
> So, if you have 512MB of RAM, then the total blocks is 65536, and it
> would likely be reasonable to increase shared_buffers to 1/10 of that,
> or about 6500.
>
> What is the value of effective_cache_size? That should probably be
> increased a whole lot, too. If you are mainly just running the
> database on your system, then it would be reasonable to set it to most
> of memory, or
> (* 1/2 (/ (* 512 1024 1024) 8192))
> 32768.
>
> None of this is likely to substantially change the result of that one
> query, however, and it seems quite likely that it is because
> PostgreSQL is honestly returning the whole result set of ~100K rows at
> once, whereas the other DBMSes are probably using cursors to return
> only the few rows of the result that you actually looked at.
> --
> "cbbrowne","@","cbbrowne.com"
> http://www3.sympatico.ca/cbbrowne/linuxdistributions.html
> Rules of the Evil Overlord #14. "The hero is not entitled to a last
> kiss, a last cigarette, or any other form of last request."
> <http://www.eviloverlord.com/>
From | Date | Subject | |
---|---|---|---|
Next Message | Neil Conway | 2003-09-05 02:32:23 | Re: SELECT's take a long time compared to other DBMS |
Previous Message | Christopher Browne | 2003-09-05 01:26:14 | Re: SELECT's take a long time compared to other DBMS |