Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7999527
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T15:31:56+00:00 2026-06-04T15:31:56+00:00

In a database i have 30k users, each with a specified phonenumber. For each

  • 0

In a database i have 30k users, each with a specified phonenumber. For each phonenumber, I will call a webservice which pulls some information for the user. Many users are not presented in the webservice, so I will just recieve null, but I don’t know which users, and new users can be presented from time to time. The webservice updates realtime, so new results will come from minute to minute.
If the response is not null, and the recieved file is not the same as received last time, I create a PDF document from the recived XML-file.

The webservice call is started by a scheduled task which starts an .aspx-site with the following pseudo-code:

Foreach phonenumber {
HttpWebRequest webRequest = (HttpWebRequest)WebRequest.Create("webservice/phonenumber");

using (StreamReader reader = new StreamReader(webResponse.GetResponseStream()))
    {
        makePdf();
    }
}

The problem is, of course, that the request takes forever. For 30k users it would take about 7 hours. I have tried looking at async webservice calls, but couldn’t get anything to work. Can someone point me in the right direction – if possible -, or tell me how I should go about this?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T15:31:57+00:00Added an answer on June 4, 2026 at 3:31 pm

    First you should check if the time is in the webservice or in the PDF creation. If it is in the webservice, check if you are missing indexes, etc. To improve the webserice you can thing of getting multiple phonenumbers at the same time. If your problem is in the PDF creation, find a way to improve the creation of the pdfs. It’s not clear what tools you are using to create a pdf at this moment.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a database of some 30k ranges, each is given as a pair
I have database application, I want to allow the user to restore the deleted
My database have got 4 table : users id username images id user_id image
Why do some ecommerce database have tables: product product_variant Why not only one product
I've designed a multilingual web site and some values in database have a tag
I have MSSQL 2008 database, which is hosted on a server. The database have
I have an xml file which i use for database, meaning that the xml
I have some office records. Database is already created and filled with lots of
I ask because my unit tests which connect to my local dev database have
My database have column MyId which is INT PK. In mapping file I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.