[Tutor] Message persistence
alan.gauld@bt.com
alan.gauld@bt.com
Mon, 9 Apr 2001 11:35:59 +0100
> to write a web based message board system with CGI with
> replies in threads what would be some of the ways to consider
> for message persistence in Python?
Same as any other kind of persistence:
1) Store in memory - valid for life of process
2) Store in flat files - fine oif not too many
- maybe OK if a file per thread?
3) pickle/shelve - save the thread object as above
but less work :-)
4) Use a database - best if any real volumes involved.
Pick any database that runs on your platform and
has a Python data driver module
Alan G