Re: plpyhton

Поиск
Список
Период
Сортировка
От Joshua Tolley
Тема Re: plpyhton
Дата
Msg-id 4cedf777.2a978e0a.619c.164d@mx.google.com
обсуждение исходный текст
Ответ на Re: plpyhton  (c k <shreeseva.learning@gmail.com>)
Ответы Re: plpyhton  (c k <shreeseva.learning@gmail.com>)
Список pgsql-general
On Wed, Nov 24, 2010 at 11:56:16AM +0530, c k wrote:
> Hello,
> Does calling a pl/python function from each database connection load the
> python interpreter each time? what are the effects of using pl/python
> function in a environment where no. of concurrent connections are more and
> each user calls a pl/python function?
>
> Please give the details about how pl/python functions are executed.
> Thanks and regards,
>
> CPK

I don't know plpython terribly well, but for most PLs, calling them once in a
session loads any interpreter they require. That interpreter remains loaded
for the duration of the session. So each individual connection will load its
own interpreter, once, at the time of the first function call requiring that
interpreter. Most widely used languages also cache various bits of important
information about the functions you run, the first time you run them in a
session, to avoid needing to look up or calculate that information again when
you run the function next time.

--
Joshua Tolley / eggyknap
End Point Corporation
http://www.endpoint.com

Вложения

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

Предыдущее
От: Chris
Дата:
Сообщение: Re: is any of the SQL parser exposed ?
Следующее
От: Joshua Tolley
Дата:
Сообщение: Re: diagram tools?