Re: R: Table get is slow

This is a discussion on Re: R: Table get is slow within the SNMP Users forums, part of the Networking and Network Related category; On 17/09/2007, <Antonio.DiBacco@technolabs.it> wrote: > > I found that getting tables managed by ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-18-2007
Dave Shield
 
Posts: n/a
Default Re: R: Table get is slow

On 17/09/2007, <Antonio.DiBacco@technolabs.it> wrote:
> > I found that getting tables managed by my subagent is really slow,
> > asking a particular column of a row involves iterating over all the
> > rows.
> > Is it possible to speed up this process?

>
> I'm using table iterator and my subagent is written in C++.


The iterator helper is designed for tables which are held in
"non-sorted" order, so it will iterate through *all* the rows for
each individual request. That's why it's called "table_iterator".

As you have recognised, this is not particularly efficient.
You might find one of the other table helpers a more appropriate
choice. I'd suggest you look at 'table_tdata' - either allowing the
helper to hold the table data itself, or else caching a local copy
on a regular basis.
In either case, you should find this a more efficient implementation.

Or you could look at the MfD framework.

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 06:05 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0