Re: Pl/Perl speed

From: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
To: Chris Ochs <chris(at)paymentonline(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Pl/Perl speed
Date: 2004-01-14 18:40:25
Message-ID: 40058D19.2060502@commandprompt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Chris Ochs wrote:

>I am pretty sure I know this already, but every time you run a Pl/Perl
>function it is just like running a perl script as far as having to load and
>compile the code right? My application runs under mod perl so I'm thinking
>that speed is not something I would gain by putting any of the code into the
>database server via Pl/Perl.
>
>
You can also preload (if you are running Mammoth or 7.4) the plperl.so
which should
give you a speed increase.

It entirely depends on what you are trying to do with pl/Perl however.
If you need
access to tuple data (ability to modify records etc...) then your kind
of out of luck.
However, if you are using it to perform logic and then spit back the
results pl/Perl
could be very useful and give a speed increase.

The speed increase would come from only returning the results of your
calculation
versus returning a set of data and then performing calculations on that
set and then
displaying it.

Sincerely,

Joshua D. Drake

>Chris
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 7: don't forget to increase your free space map settings
>
>

--
Command Prompt, Inc., home of Mammoth PostgreSQL - S/ODBC and S/JDBC
Postgresql support, programming shared hosting and dedicated hosting.
+1-503-667-4564 - jd(at)commandprompt(dot)com - http://www.commandprompt.com
Mammoth PostgreSQL Replicator. Integrated Replication for PostgreSQL

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Joshua D. Drake 2004-01-14 18:45:07 Re: Postgress and MYSQL
Previous Message Peter Eisentraut 2004-01-14 18:35:42 Re: Postgress and MYSQL