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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:54:57+00:00 2026-05-25T00:54:57+00:00

I’ve got a process which will take a little under 5 seconds to complete.

  • 0

I’ve got a process which will take a little under 5 seconds to complete. The user will most likely notice the program flicker for a few seconds after pushing the “go” button.

My question is:

Is this something that would normally be dumped onto a background worker, or is there another .NET method for handling small tasks, or is this something that shouldn’t be a concern?

FYI:
The process opens a user specified excel file, processes an unknown number of lines (max 1.5 million due to excel I believe), and queries a database (very quick query). So at the worst case scenario the user uploads a 1.5 million row excel file and is running on a very slow internet connection.

  • 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-05-25T00:54:58+00:00Added an answer on May 25, 2026 at 12:54 am

    If you don’t want the user to be able to do anything while the file is being uploaded, then you don’t need to put it on a different thread.

    If you want the user to be able to go on to other tasks while the file is uploading, put it on a different thread.

    As a general rule of thumb, if I have a situation where I absolutely don’t want the user to do anything while a long-running process is going, I disable the controls on the form until the task is complete, and usually use a status indicator to show that progress is happening.

    My personal guideline for whether or not to allow user interaction is if the results of a process could be altered by a user action in mid-stream.

    For example, one program that we have parses a bunch of queries on a highly normalized database (normalized to the point where reporting is sloooow) into “reportable” tables, and I don’t want the user altering data in one of the source tables while the query is running, because it will give goofy results.

    If there is no harm in allowing user interaction while the process is occuring, then put it in another thread.

    Edit

    Actually, on reading @UrbanEsc and @archer’s comments, I agree with them. Still put it on a different thread and freeze the controls (and include a progress indicator where possible).

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

Sidebar

Related Questions

I've got my Django project running well, and a separate background process which will
We've got a process currently which causes ASP.NET websites to be redeployed. The code
I've got a project which requires a fairly complicated process and I want to
I'm in the process of refactoring a project. I've got an entire subfolder which
Essentially I've got a table holding user data, all of which is AES encrypted
I've got a widget which will update itself whenever there's a configuration change (such
Hi all i've got the following code which will go off and get all
So I'm putting together an RSS parser which will process an RSS feed, filter
I've got a process something like a workflow, assume it like this: Prepare Eat
I'm working on Rhino (Mirth), and I've got to process / parse an XML

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.