General Discusson: use framework or sql for web application?

From: Rory Campbell-Lange <rory(at)campbell-lange(dot)net>
To: pgsql-novice(at)postgresql(dot)org
Subject: General Discusson: use framework or sql for web application?
Date: 2003-04-16 13:56:37
Message-ID: 20030416135637.GB864@campbell-lange.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

I've just had the experience of one of my perl/php/postgres prototypes
failing to make it to a bigger version of the same app. Part of the
reason is because of some specification issues. The other may be because
of the complications of modelling the data in a java framework (expresso
in this case) which meant that things like left outer joins in my
original database interface file (perl using dbi) were replaced by
constructing software objects from simple database calls.

I'm about to embark on another medium-sized web application and would be
grateful for general views on whether or not it is considered good
practice to either:

model data in the database, providing views or functions to access
particular sets of data.
OR
model data in the "middleware zone", with quoted sql used to access data
in an ad hoc manner.

--
Rory Campbell-Lange
<rory(at)campbell-lange(dot)net>
<www.campbell-lange.net>

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lane 2003-04-16 15:07:02 Re: Date Style
Previous Message Alan Roberto Romaniuc 2003-04-16 13:46:00 Date Style