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

  • Home
  • SEARCH
  • 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 8640575
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T11:18:48+00:00 2026-06-12T11:18:48+00:00

I have a Service method as mentioned below GetDetails(List<int> ids) The problem is that

  • 0

I have a Service method as mentioned below

GetDetails(List<int> ids)

The problem is that the above service method works fine if the number of ids (Count) is less than 50…anything above 50 ids throws an error… this is how the service was built and I do not have any control to change this service method…

Now I have a situation where I have to make a call to this service method for 1000 Ids which means the above service method will not work unless I am guessing to do some kind of multithreading/parallel stuff…my question is…is there a way to make this work and at the same time to not compromise with the performance a lot…any help will be deeply appreciated…

Update
The error is a handled exception and the service says “request cannot be handled”…this service was worked by a team which is remote and I donot have a control over it…

  • 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-12T11:18:49+00:00Added an answer on June 12, 2026 at 11:18 am

    TPL + Linq. This will call the service with lists of max 50 items in parallel.

    Parallel.ForEach(
        ids.Select((Item, Index) => new { Item, Index })
            .GroupBy(x => x.Index / 50)
            .Select(g => g.Select(x => x.Item).ToList()),
        list =>
        {
            Console.WriteLine(String.Join(",", list));
            //GetDetails(list)
        }
    );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a service method that calls a DAO which then returns an object
I have a WCF service method that expects an object and then retrieves its
I have a WCF service method that's running in a worker thread I spin
I have a WCF service method that calls a SQL stored proc. I'm developing
I have some class that I'm passing as a result of a service method,
I have a simple web service method that returns a simple java class as
I have a web service method where I would like to throw some custom
I have a web service method in which I create a particular type of
When I call, the service's method, I have Web Service Exception happening which I
I have a simple web service method which I'm trying to convert: <WebMethod()> _

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.