On Mon, Feb 7, 2011 at 6:05 AM, Shaun Thomas <sthomas@xxxxxxxxx> wrote:
Thatâs one of the things I talked about. To be safe, PG will start to shut down but disallow new connections, and *thatâs all*. Old connections are grandfathered in until they disconnect, and when they all go away, it shuts down gracefully.
Well.... it said "Failed to shutdown ..............." Âand then returned control.
and then proceeded to run for about an hour.
I'm not sure how graceful that is.
I generally take programs at their word. Â"Failed" is clearly past tense.
So far as your Django install, have you activated the memcache contrib. module? Your pages should be lazy-caching and rarely depend on the DB, if they can.
yes thanks my web app is very finely tuned and is working splendidly.
I've been working on very large sites sites since 1998 and this client has been with me for 10 years already. Âits a fairly high traffic site.
I've only been using postgres since we migrated in May
but it is one particular table on postgres that has shit the sock drawer.
Â
You should also rarely be doing count(*) on a 300k row table, even if everything is cached and speedy.
I'm not
this is a test query that is obviously way out of bounds for acceptable response.Â
there is something very very wrong with this table and I need to solve it ASAP.
other tables that have less updates but similar sizes are not having this problem.
there are foreign keys pointing to this table so its a bit tricky to just refill it, but I can think of one way. ÂI'll have to do that. Â
its only conjecture that the issue is file space bloat or free map problems. Âthose are overall issues that I will get to as soon as I can. but this is table specific.
ÂThatâs an application design issue you need to address before itâs too late, or you have to rush and implement a hasty fix.
it is not an application design issue, though there are always improvements being made.
Being a DBA sucks sometimes. J
I am not a DBA, I'm just trying to query a 300k row table.
though I am happy to learn more. I know an awful lot about a lot of things. Âbut you can't specialize in everything