| From: | "Guido Notari" <gnotari(at)linkgroup(dot)it> |
|---|---|
| To: | shridhar_daithankar(at)persistent(dot)co(dot)in |
| Cc: | PostgreSQL General <pgsql-general(at)postgresql(dot)org>, pgsql-general-owner(at)postgresql(dot)org |
| Subject: | Re: Batch processing |
| Date: | 2003-07-29 09:02:04 |
| Message-ID: | OF9852FB60.003B1F1B-ONC1256D72.00315CEB@linkgroup.it |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
> On 29 Jul 2003 at 10:28, gnotari(at)linkgroup(dot)it wrote:
>
> > I'm in the need of something similar to Oracle's batch processing, in
> > Postgres.
> > I would like to have something like a queue of "requests" (SQL
selects),
> > run one by one, so not to overload the server -- every SELECT is
> > 'intensive'.
> >
> > How would you implement such a thing?
>
> psql databasename < selectfile
>
> Would that do? You need to prepare the select file beforehand but
something on
> similar line should work..
This, combined with the 'batch' command, could be a beginning.
Actually, I want to integrate all this with Zope, so I'll probably won't
use psql but python, serialize the results and put them in a table as text
objects.
thanks
Guido
| From | Date | Subject | |
|---|---|---|---|
| Next Message | u15074 | 2003-07-29 09:50:24 | View index question |
| Previous Message | Shridhar Daithankar | 2003-07-29 08:42:47 | Re: Batch processing |