Re: Pl/Perl speed

Поиск
Список
Период
Сортировка
От Joshua D. Drake
Тема Re: Pl/Perl speed
Дата
Msg-id 40058D19.2060502@commandprompt.com
обсуждение исходный текст
Ответ на Pl/Perl speed  ("Chris Ochs" <chris@paymentonline.com>)
Список 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@commandprompt.com - http://www.commandprompt.com
Mammoth PostgreSQL Replicator. Integrated Replication for PostgreSQL


В списке pgsql-general по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Postgress and MYSQL
Следующее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: Postgress and MYSQL