CGI Database Question
Michael W. Ryan
mryan at netaxs.com
Mon Aug 2 14:00:02 EDT 1999
On Sat, 31 Jul 1999 18:05:20 GMT, Joel Gould <joelg at alum.mit.edu> wrote:
>I would like to use Python for CGI scripts. I am going to ask my ISP
>to install Python (they run an NT server with IIS), but what database
>package should I use? Specifically, what should I tell my ISP to
>install so I can use a (simple) database from my CGI scripts?
The Win32 distribution (I believe) comes with a dbm implementation. The
dbm family of flat file databases are good for lightweight file-server
databases, and are the database type used by shelve.
>Also, do I have to worry about thread safety? In other words, can
>multiple requests come into the web server causing multiply copies of
>my Python scripts to be run concurrently? Does this impact the
I'm not sure how dbms handle file locking on the database files, but I
think you have to handle it on your own. Generally, CGI invokes a
separate Python interpreter process for each CGI request.
Michael W. Ryan, MCP, MCT | OTAKON 1999
mryan at netaxs.com | Convention of Otaku Generation
http://www.netaxs.com/~mryan/ | http://www.otakon.com/
PGP fingerprint: 7B E5 75 7F 24 EE 19 35 A5 DF C3 45 27 B5 DB DF
PGP public key available by fingering mryan at unix.netaxs.com (use -l opt)
More information about the Python-list