[qdbm-users] random access
Brought to you by:
mikio
From: Derek S. <de...@ho...> - 2008-11-26 22:54:45
|
Greetings, I was wondering if there is any feasible way to provide random access to data within a B+ Tree Villa database? For example, say I have 100,000 entries in a qdbm Villa database, sorted alphabetically (say dictionary words for example), and I'm using this type of database (Villa) because I want to be able to add and/or remove words, and then to be able to retrieve them in sorted order. Now, say I need to be able to quickly retrieve the middle 100 words (words 50,000 to 50,099). Is there a way to do this quickly, without starting at the beginning of the list, and counting along until I get to 50,000? Thanks :) -Derek |