[mod_python] global persistence

Jonathan Gardner jgardner at jonathangardner.net
Wed Jun 25 07:01:12 EST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday 24 June 2003 23:58, 1 1 wrote:
> >>I suggest PostgreSQL as a database. Others will suggest MySQL, SQL
> >> Server, Oracle, or Sybase.
> >>So go start learning about databases, and how best to use them! ;-)
>
> Yes, I'm using PgSQL and have possibly hundreds of simultaneous
> connections. That's why I tried to cache all in memory.
> Thanx for advice anyway.
>

In this case, if you are just caching some data, just have the processes query 
the database and cache it once. Then you can just use the cache for every 
subsequent result. Or you can store it in the modules hard-coded, and just be 
very careful not to change it during the lifetime of the processes.

- -- 
Jonathan Gardner <jgardner at jonathangardner.net>
(was jgardn at alumni.washington.edu)
Live Free, Use Linux!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE++asoWgwF3QvpWNwRAjlJAJ4rxu6qOQnTpg1FBdBRi4gCaZLSaACeLY4p
zNL5/N1kVTZx3tzYzjmV65A=
=JnBM
-----END PGP SIGNATURE-----



More information about the Mod_python mailing list