• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

LDAP result iteration performance problem.

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Hi Ranchers,

I am running the below code to retrieve some results from an LDAP server and iterate through them. The problem is that the LDAP query itself takes just 0.25 seconds but the iteration is taking around 9 seconds. Any clue as to what I might be doing wrong over here?



Regards,
Vicki.
 
Ranch Hand
Posts: 862
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How many elements does it iterate. It may be that although the initial query returns quickly each time you iterate the data it has to do a roundtrip to the source. If so, you may be able to set a buffer size or some other connection parameter that can reduce the roundtrips.
 
Vicki Amin
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Steve,

Thanks for the prompt reply. That actually makes a lot of sense. Would you know of any connection param's that I can use to reduce the round trips? One more question; would doing a simple also involve a round trip to the server?

Regards,
Vicki.
 
steve souza
Ranch Hand
Posts: 862
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I would look at the LDAP api you are using. I'm not familiar with it. In jdbc you can set such parameters on connection. Look at the initial context to see if you can pass it parameters on creation.
 
reply
    Bookmark Topic Watch Topic
  • New Topic