468,285 Members | 1,589 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,285 developers. It's quick & easy.

Two python database questions

Hi folks.

I'm working on some file indexing software, in python of course.

Over the course of working on it, I've come upon two python+database
related questions:

1) Is there a reason for the gdbm module in python 2.4.1 not to have a get
method? This makes it a touch less dictionary-like.

2) Has anyone already written some sort of in-memory cache wrapper for
gdbm or anydbm or whatever? As I'm writing this program, I'm finding that
there's an awful lot of disk I/O going on - it'd be great if there were
some way of keeping the n most recently used items in memory, and only
write them to disk when room needs to be made in the cache or when the
program exits?


Oct 16 '05 #1
0 1056

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

37 posts views Thread by Ubaidullah Nubar | last post: by
reply views Thread by Emile van Sebille | last post: by
6 posts views Thread by Michael Foord | last post: by
1 post views Thread by Joe T. | last post: by
4 posts views Thread by hot.favorite | last post: by
34 posts views Thread by Anthony Irwin | last post: by
2 posts views Thread by Michael R. Copeland | last post: by
8 posts views Thread by Krypto | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.