pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mitch Pirtle <mitchy@spacemonkeylabs.com>
To: jer@highboard.com
Cc: pgsql-admin@postgresql.org
Subject: Re: PosgreSQL hogging resources?
Date: Fri, 20 Feb 2004 15:24:28 -0500
Message-ID: <40366CFC.5050302@spacemonkeylabs.com> (raw)
In-Reply-To: <FKEOIJEHOIKIOEHCGNCLIEOMEDAA.jer@highboard.com>
References: <FKEOIJEHOIKIOEHCGNCLIEOMEDAA.jer@highboard.com>

Jeremy Smith wrote:

>I will look into some of the suggestions you have made, the problem is that
>I can't do large scale optimization at the moment because I am still adding
>features to the site.  I just wonder if the best mode of attack would be
>switching back to mysql until I have added all of the necessary features,
>optimizing the queries and code there, and then switching back to pg at a
>later date.
>
When you switch to pg, you will be able to move some/lots? of your code 
into the database as views, stored procedures, triggers etc...  So keep 
that in mind while working in MySQL, as you will definitely need a 
different approach.

I inherited a site that had very database-hungry pages, and started 
using stored procs and triggers to automate some of the jobs (like 
updates and such) in the database, instead of making the webserver 
manually send the instructions across the wire.  If you plan on taking 
this approach then you should get your app into pg sooner than later...

-- Mitch, wondering about 12 packs?




view thread (9+ messages)  latest in thread

Message-ID: <40366CFC.5050302@spacemonkeylabs.com>
Permalink:  ../40366CFC.5050302@spacemonkeylabs.com/
Also on:    postgresql.org/message-id/40366CFC.5050302@spacemonkeylabs.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: mitchy@spacemonkeylabs.com, jer@highboard.com
  Subject: Re: PosgreSQL hogging resources?
  In-Reply-To: <40366CFC.5050302@spacemonkeylabs.com>
  References: <FKEOIJEHOIKIOEHCGNCLIEOMEDAA.jer@highboard.com> <40366CFC.5050302@spacemonkeylabs.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox