PL/PGSQL and PL/Perl time issues

Поиск
Список
Период
Сортировка
От Travis Bauer
Тема PL/PGSQL and PL/Perl time issues
Дата
Msg-id a78jrf$29mq$1@jupiter.hub.org
обсуждение исходный текст
Список pgsql-general
I have a PL/PGSQL routine that does one select and a lot (~400 lines) of
floating point computations.  In rapid succession my JDBC application calls
this routine about 170 times.  It gets slower as time drags on, taking
around 5 seconds per call at the beginning and ending up taking about 15
seconds per call at the end.

I have a much shorter (about 10 lines), but less efficient PL/Perl routine
that accomplishes the same computation, but does a lot of string matching
and runs slower.  But the same problem occurs Each call takes longer the
more I call it.

Are there postgress issues I should be aware of regarding calling pl/pgsql
and pl/perl routines, or using JDBC to call these routines?  Is there a way
to prevent this increase in time?

Thanks,
--
Travis Bauer
http://www.cs.indiana.edu/~trbauer

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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: Yet another indexing issue.
Следующее
От: Travis Bauer
Дата:
Сообщение: Re: PL/PGSQL and PL/Perl time issues