Two python database questions

D

Dan Stromberg

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?

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Database problems 2
Python Internet Database 5
Two questions about logging 6
Python GUI questions 10
How do I solidify my Python skills 1
Python questions help 5
python database 1
python database 1

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,175
Latest member
Vinay Kumar_ Nevatia
Top