From: Tea Yu <teayu1@gmail.com>
To: Charles Curi <charles.curi@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Shopping Cart
Date: Wed, 01 Feb 2006 15:41:29 +0800
Message-ID: <43E06629.2000307@gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0602011022160.1267-100000@matrix.gatewaynet.com>
References: <Pine.LNX.4.44.0602011022160.1267-100000@matrix.gatewaynet.com>
You can compromise on Session for anonymous Shoppers and DB-backed
persistence for logged-in shoppers. An exception is when you have a web
server cluster and you find that they are busy replicating sessions all
the time, then you might also opt for DB-backed shopping carts in the
former.
Tea
> O Charles Curi Ýãñáøå óôéò Jan 31, 2006 :
>
>
>> Hi people.
>> I need to implement a shopping cart in my Java web system.
>> A friend of mine adviced me using stored procedures and temporary tables
>> with PostgreSQL.
>> I wonder if anybody have an example in mood to help me.
>> I`d be grateful.
>>
>
> Session wide stored Attribues would definately do the job,
> and fits with the idea of temporary inmemory storage.
>
> When i implemented a web based email client on top of
> jboss/jetty/pgsql i used the above techinque for implementing
> attachments.
>
> However the persistence of the transaction's details might be subject
> to further thought.
>
>
>> Cheers.
>> Charles
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-jdbc@postgresql.org
Cc: teayu1@gmail.com, charles.curi@gmail.com
Subject: Re: Shopping Cart
In-Reply-To: <43E06629.2000307@gmail.com>
References: <Pine.LNX.4.44.0602011022160.1267-100000@matrix.gatewaynet.com> <43E06629.2000307@gmail.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