Re: Dictionary or Database—Please advise

2010-02-26 Thread Steven D'Aprano
On Fri, 26 Feb 2010 21:56:47 +0100, Patrick Sabin wrote: >> Shelve looks like an interesting option, but what might pose an issue >> is that I'm reading the data from a disk instead of memory. I didn't >> mention this in my original post, but I was hoping that by using a >> database it would be m

Re: Dictionary or Database—Please advise

2010-02-26 Thread Phlip
On Feb 26, 7:58 am, Jeremy wrote: > I have lots of data that I currently store in dictionaries.  However, > the memory requirements are becoming a problem.  I am considering > using a database of some sorts instead, but I have never used them > before.  Would a database be more memory efficien

Re: Dictionary or Database—Please advise

2010-02-26 Thread Aahz
In article <891a98fa-c398-455a-981f-bf72af772...@s36g2000prh.googlegroups.com>, Jeremy wrote: > >I have lots of data that I currently store in dictionaries. However, >the memory requirements are becoming a problem. I am considering >using a database of some sorts instead, but I have never used

Re: Dictionary or Database—Please advise

2010-02-26 Thread Luis M . González
On Feb 26, 12:58 pm, Jeremy wrote: > I have lots of data that I currently store in dictionaries.  However, > the memory requirements are becoming a problem.  I am considering > using a database of some sorts instead, but I have never used them > before.  Would a database be more memory efficie

Re: Dictionary or Database—Please advise

2010-02-26 Thread Aahz
In article , Patrick Sabin wrote: > >A database usually stores data on disk and not in RAM. However you could >use sqlite with :memory:, so that it runs in RAM. The OP wants transparent caching, so :memory: wouldn't work. -- Aahz (a...@pythoncraft.com) <*> http://www.pythoncr

Re: Dictionary or Database—Please advise

2010-02-26 Thread Patrick Sabin
Shelve looks like an interesting option, but what might pose an issue is that I'm reading the data from a disk instead of memory. I didn't mention this in my original post, but I was hoping that by using a database it would be more memory efficient in storing data in RAM so I wouldn't have to r

Re: Dictionary or Database—Please advise

2010-02-26 Thread CM
On Feb 26, 10:58 am, Jeremy wrote: > I have lots of data How much is "lots"? > that I currently store in dictionaries.  However, > the memory requirements are becoming a problem.  I am considering > using a database of some sorts instead, but I have never used them > before.  Would a databas

Re: Dictionary or Database—Please advise

2010-02-26 Thread mk
Jeremy wrote: Shelve looks like an interesting option, but what might pose an issue is that I'm reading the data from a disk instead of memory. I didn't mention this in my original post, but I was hoping that by using a database it would be more memory efficient in storing data in RAM so I woul

Re: Dictionary or Database—Please advise

2010-02-26 Thread mk
Jeremy wrote: I have lots of data that I currently store in dictionaries. However, the memory requirements are becoming a problem. I am considering using a database of some sorts instead, but I have never used them before. Would a database be more memory efficient than a dictionary? I also nee

Re: Dictionary or Database—Please advise

2010-02-26 Thread Jeremy
On Feb 26, 9:29 am, Chris Rebert wrote: > On Fri, Feb 26, 2010 at 7:58 AM, Jeremy wrote: > > I have lots of data that I currently store in dictionaries.  However, > > the memory requirements are becoming a problem.  I am considering > > using a database of some sorts instead, but I have never

Re: Dictionary or Database—Please advise

2010-02-26 Thread lbolla
On Feb 26, 3:58 pm, Jeremy wrote: > I have lots of data that I currently store in dictionaries.  However, > the memory requirements are becoming a problem.  I am considering > using a database of some sorts instead, but I have never used them > before.  Would a database be more memory efficien

Re: Dictionary or Database—Please advise

2010-02-26 Thread Chris Rebert
On Fri, Feb 26, 2010 at 7:58 AM, Jeremy wrote: > I have lots of data that I currently store in dictionaries.  However, > the memory requirements are becoming a problem.  I am considering > using a database of some sorts instead, but I have never used them > before.  Would a database be more mem

Re: Dictionary or Database—Please advise

2010-02-26 Thread Benjamin Kaplan
On Fri, Feb 26, 2010 at 10:58 AM, Jeremy wrote: > I have lots of data that I currently store in dictionaries. However, > the memory requirements are becoming a problem. I am considering > using a database of some sorts instead, but I have never used them > before. Would a database be more memo

Dictionary or Database—Please advise

2010-02-26 Thread Jeremy
I have lots of data that I currently store in dictionaries. However, the memory requirements are becoming a problem. I am considering using a database of some sorts instead, but I have never used them before. Would a database be more memory efficient than a dictionary? I also need platform indep