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 8986861
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T21:39:07+00:00 2026-06-15T21:39:07+00:00

I have an Azure worker role running in a an extra small instance. All

  • 0

I have an Azure worker role running in a an extra small instance. All it does is dequeue all the messages from a storage queue, and insert them into table storage in chunks of 100.

I was wondering if it makes sense to spawn multiple threads when inserting these chunks even though the instance is only a single core. My thought was that since insertion is an asynchronous process (though I’m using the API calls that make it look synchronous) that maybe the core spends most it’s time waiting and I may see a performance boost by inserting in parallel.

The inserts go into 10 table partitions, so it would be really easy to paralellize across partitions. Is that my best bet? Can I use PLINQ to do this? I know that PLINQ optimizes thread usage based on the number of cores, so would it even spawn multiple threads in this case? What if I used the async versions of the insert calls, wouldn’t that have the effect of spawning multiple threads when the calls to table storage returned?

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-15T21:39:08+00:00Added an answer on June 15, 2026 at 9:39 pm

    You could spawn multiple threads and it would probably run faster. As you noted, most of the time is spent in I/O, so the CPU could switch between them.

    However, using the async versions of the calls (the Begin/End style calls, or the newer DoSomethingAsync() style calls if you’re using .NET 4.5 and the latest SDK) will perform much better. Under the covers these calls use I/O completion ports which are a much more efficient way to handle I/O. There are probably some good comparison out there, but my own informal testing found the async methods to be around 10x faster.

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

Sidebar

Related Questions

I have an Azure Worker Role set up to get information from a few
When a Windows Azure worker role instance is rebooted from within the Azure portal,
I have a simple Azure Worker role running that performs a task every day
We have a requirement to read an excel sheet from the Azure worker role.
I have deployed a Worker Role to an Azure instance with remote access enabled.
I have an Azure worker role whose job is to periodically run some code
I have a service hosted in a Worker Role in Azure. Clients connect over
I already have my azure web role running in cloud using azure sdk 1.6.
We have a worker role in Azure which uses Process.Start to kick off a
I have an Azure Worker Role that has three types of processes: C# thread

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.