I'd like to have all the attributes in memory (because I assume they  
are small and I need to search them a lot) but have the data in the  
tables paged in and out of memory as I need it.

Is that a realistic expectation?

Sent from my iPhone

On 26 Oct 2010, at 08:23, Francesc Alted <fal...@pytables.org> wrote:

> A Monday 25 October 2010 22:16:30 David Briant escrigué:
>> I'm wondering if it might be better creating a representation of the
>> attributes in memory using dicts. The code I posted takes about a
>> second at the moment and I'll need to do lots of lookups by
>> attributes and I'll end up with thousands of tables.
>
> If you are going to repeat similar lookups in time, you may want to  
> try
> fine-tuning the `NODE_CACHE_SLOTS` parameter that sets the maximum
> number of unreferenced nodes to be kept in memory.  See:
>
> http://www.pytables.org/docs/manual/apc.html#id364527
>
> Cheers,
>
> -- 
> Francesc Alted
>
> --- 
> --- 
> --- 
> ---------------------------------------------------------------------
> Nokia and AT&T present the 2010 Calling All Innovators-North America  
> contest
> Create new apps & games for the Nokia N8 for consumers in  U.S. and  
> Canada
> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in  
> marketing
> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi  
> Store
> http://p.sf.net/sfu/nokia-dev2dev
> _______________________________________________
> Pytables-users mailing list
> Pytables-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pytables-users

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Pytables-users mailing list
Pytables-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pytables-users

Reply via email to