Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Slowing down my code

Participant ,
Mar 17, 2009 Mar 17, 2009
I need to make a loop progress slower than it currently is. I have code that loops through a list of about 10,000 users and checks them against our companies LDAP server. Well this week our company instituted a policy that only allows around 200 hits per minute to the server from a single machine. Once you exceed that limit they lock your machine out. I found this out the hard way.

Is there a way I can force my code to pause during each iteration of the loop?
360
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Mar 17, 2009 Mar 17, 2009


Latests versions of CF, the sleep() function. Earlier MX versions
java.lang.Thread.sleep() functions. Google for the exact syntax.

Translate
LEGEND ,
Mar 17, 2009 Mar 17, 2009


Latests versions of CF, the sleep() function. Earlier MX versions
java.lang.Thread.sleep() functions. Google for the exact syntax.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Mar 17, 2009 Mar 17, 2009
LATEST
Thanks. Looking into cfthread and sleep()
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources