On Fri, 06 Jan 2006 14:01:29 -0500 Glenn wrote:
GM> Unfortunately, the current way the 
GM> module stores the data is in an unsorted linked list.  I've got a custom 
GM> command that lists just the address of record (my index value, its a 
GM> (usually) short value like [EMAIL PROTECTED]), but not in 
GM> sorted order.  Looks like I'll have to extend my command.  On that note, 
GM> I'm not sure I know what you meant by "sorted correctly."  I'm happy to 
GM> RTFM, if someone will point me at the FM. :-)
GM> 
GM> Once I have the indexes in sorted order, is there anything I need to do 
GM> to tell the cache that it's already sorted?
 [...]
GM> I'm going to 
GM> go ahead and work with the MFD approach (populate the index before the 
GM> data) for now.

Ok, if you are going with MFD, then you don't need to worry about trying to
get the list sorted, the container will keep itself sorted. This also means
you don't need to worry about what 'sorted correctly' means either. ;-)

Do you have any idea how long it takes to get all the indexes from the server?

Since you do intended to be dealing with large amounts of data, if you can get
incremental updates from the server module (eg record add/delete), then you
wouldn't have to keep flushing/reloading the cache periodically.

-- 
NOTE: messages sent directly to me, instead of the lists, will be deleted
      unless they are requests for paid consulting services.

Robert Story; NET-SNMP Junkie
Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp>
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders>

You are lost in a twisty maze of little standards, all different. 


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to