On Thu, Mar 17, 2011 at 12:48 PM, Jason Allen <[email protected]> wrote: > I have a collection built that could potentially have 10,000 or more > records. > > I need to query this catalog and grab 20 random records from it.
What are the specific types of documents (or are they web pages?) you're using to create your collection, and how is the collection getting populated? Is 10,000 records the upper limit or will it grow beyond that? How up to the minute does the random document selection need to be? (I'm assuming not very given that you're pulling at random.) Maybe you should populate a database or in-memory collection of some sort (array, whatever) with basic metadata and do the randomization piece from that since that's dead simple--just a random idea. -- Matthew Woodward [email protected] http://blog.mattwoodward.com identi.ca / Twitter: @mpwoodward Please do not send me proprietary file formats such as Word, PowerPoint, etc. as attachments. http://www.gnu.org/philosophy/no-word-attachments.html -- official tag/function reference: http://openbd.org/manual/ mailing list - http://groups.google.com/group/openbd?hl=en
