473,385 Members | 1,320 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

plpythonu+postgrs anybody using it?

Hello,

I just started on working with a postgres project, the DB looks really
bad and isn't normalized in any way... 4k Text messages representing a
whole protocol which need to be transformed. Somehow it just doesn't
seem right to put this stuff directly in the database and creating a
bunch of stored procedures (SP) to parse them but I'm not the one to
decide it...

My main concern is that when things start getting more complicated
that everytime a SP is called an instance of the interpreter ist
started which would be a huge slowdown, so does plpythonu run
continiously a python process or does it start one everytime a SP is
called?

--
http://tumblr.marcher.name
https://twitter.com/MartinMarcher
http://www.xing.com/profile/Martin_Marcher
http://www.linkedin.com/in/martinmarcher

You are not free to read this message,
by doing so, you have violated my licence
and are required to urinate publicly. Thank you.
Apr 2 '08 #1
1 1572
Martin Marcher <ma****@marcher.namewrote:
My main concern is that when things start getting more complicated
that everytime a SP is called an instance of the interpreter ist
started which would be a huge slowdown, so does plpythonu run
continiously a python process or does it start one everytime a SP is
called?
I'm not using plpythonu, but nobody else seems to be jumping to answer
so I'll have a go. I'm fairly sure but not certain that what I say
below is true.

When you use PL/Python, there is no separate Python process. The Python
interpreter is dynamically linked into each PostgreSQL back-end process
when it first calls a PL/Python function. That means that whatever the
overhead is for initialising the Python interpreter, it will be paid at
most once per database connection.

If you find that this overhead is too high, a connection pooling system
like pgpool might help.

-M-
Apr 2 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Cláudia Morgado | last post by:
Good afternoon lists! Somebody that it works with the Pl/Phyton language could in helping them? We create the language python, however a common user, does not obtain to create a function using...
4
by: Sim Zacks | last post by:
I am in the process of converting an existing database to PostGreSQL and wrote a generic script to update all of the sequences as they default at 1. I thought it would be useful to other people who...
5
by: Sim Zacks | last post by:
I have the following function and I am getting an invalid syntax error when I try to run it. I have tried the function a number of ways including with named parameters and non-named parameters...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.