in reply to Moving from hashing to tie-ing.
If not, enhance this with a fixed-length league table (of length 1000 * memory-limit/2.5G: 1000 instead of 10000 to allow for uneven grouping of pins) in an array of array of recently-accessed storables and their hit counts and do your own virtual memory management of the 10000 or so stored hashes on that basis (can refine this by including timestamps i.e. hit ageing factor) - it's what a DBMS would do for you anyway, but such a targeted solution will perform faster than a general-solution DBMS.
-M
Free your mind
|
|---|