|
Mailing Lists
|
Home /
Groups /
ColdFusion Talk (CF-Talk)
CFLDAP different number of results on same search?
I have a CFLDAP query that seems to be giving me a different number ofDan LeGate 10/09/08 07:18 P I've seen that behaviour when the query times out. It just returnsBarney Boisvert 10/09/08 07:21 P I have this happen to me quite often and cranking the time out only helps toAaron Rouse 10/09/08 08:00 P Yes, I have noticed that too! The more attributes I request, the lessDan LeGate 10/09/08 09:06 P Okay, never mind. I was reading the Version 6 docs here (first one thatDan LeGate 10/09/08 09:12 P Yeah, I wish that were the sole cause of problems for mine. At least thoughAaron Rouse 10/09/08 10:05 P Remove the timeout attribute and it should work fine.Dawson, Michael 10/10/08 10:43 A I have a CFLDAP query that seems to be giving me a different number of results every time I search for the same text with the same filter, attributes, etc. Has anyone seen this behavior? Here's the code: <cfldap action="QUERY" name="GetResults" attributes="#OfficialAttribs#" filter="(#searchfield#=#ThisSearch#)" start="dc=ourdomain,dc=edu" scope="SUBTREE" TIMEOUT="500" port="#port#" server="#LDAPServer#" username="uid=#LookupID#,ou=People,dc=ourdomain,dc=edu" password="#LookupPass#"> This is a Sun LDAP server (v5.2). When I run queries with the command line tools I get the same results every time. I get 433 results every time w/the built-in and command-line tools. But with CFLDAP I get 100 on one attempt, then 92, on the next, and so on. REALLY strange. I have verified that the values of the variables above are identical between requests. Anyone seen this? Dan I've seen that behaviour when the query times out. It just returns whatever it's collected in within the timeout period and gives up. Only solution I found was to crank up the timeout value until that didn't happen anymore and hope for the best. cheers, barneyb On Thu, Oct 9, 2008 at 4:13 PM, Dan LeGate <Dan@legeek.com> wrote: ----- Excess quoted text cut - see Original Post for more ----- -- Barney Boisvert bboisvert@gmail.com http://www.barneyb.com/ I have this happen to me quite often and cranking the time out only helps to a point. In my case I figured out what the max I normally could get is and then subtracted from that to be on the safe side. Then I run multiple queries to get the data. I have noticed that the amount of attributes also effects how many you get back. On Thu, Oct 9, 2008 at 6:16 PM, Barney Boisvert <bboisvert@gmail.com> wrote: ----- Excess quoted text cut - see Original Post for more ----- Yes, I have noticed that too! The more attributes I request, the less records I get back, usually. The queries return in just a second or two, so I'm amazed that this is a "timeout" issue. I had it set to 500, which I thought was seconds, however when I changed it to 5,000 I got almost 300 records (out of the 433 total), and then I upped it to 150,000 and now I get all the results! Amazing! Is the "timeout" attribute in milliseconds, or seconds? All the docs I've read says seconds. Dan Aar ----- Excess quoted text cut - see Original Post for more ----- Okay, never mind. I was reading the Version 6 docs here (first one that came up on a Google search for me): http://www.adobe.com/livedocs/coldfusion/6/CFML_Reference/Tags-pt165.htm but the version 7 and 8 docs clearly state that it's milliseconds. Explains a lot. http://www.adobe.com/livedocs/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=ColdFusion_Documentation&file=part_cfm.htm http://livedocs.adobe.com/coldfusion/8/htmldocs/Tags_j-l_03.html Dan Dan LeGate wrote: ----- Excess quoted text cut - see Original Post for more ----- Yeah, I wish that were the sole cause of problems for mine. At least though our work around has been working flawlessly for a year or so now. On Thu, Oct 9, 2008 at 8:07 PM, Dan LeGate <Dan@legeek.com> wrote: ----- Excess quoted text cut - see Original Post for more ----- Remove the timeout attribute and it should work fine. I never use the CFLDAP timeout attribute. I let the page's timeout value control that. I figure if the ldap query times-out, then the results are no good (since they vary so much) and the entire page may as well fail. Mike I have a CFLDAP query that seems to be giving me a different number of results every time I search for the same text with the same filter, attributes, etc. Has anyone seen this behavior? Here's the code: <cfldap action="QUERY" name="GetResults" attributes="#OfficialAttribs#" filter="(#searchfield#=#ThisSearch#)" start="dc=ourdomain,dc=edu" scope="SUBTREE" TIMEOUT="500" port="#port#" server="#LDAPServer#" username="uid=#LookupID#,ou=People,dc=ourdomain,dc=edu" password="#LookupPass#"> This is a Sun LDAP server (v5.2). When I run queries with the command line tools I get the same results every time. I get 433 results every time w/the built-in and command-line tools. But with CFLDAP I get 100 on one attempt, then 92, on the next, and so on. REALLY strange. I have verified that the values of the variables above are identical between requests. Anyone seen this? Dan
|
May 24, 2012
|
Latest Fusion Authority Articles
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||