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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:14:57+00:00 2026-05-23T14:14:57+00:00

I have several view functions that process data from remote sources. In many cases

  • 0

I have several view functions that process data from remote sources. In many cases this processing can take over a second to complete. Will simultaneous access to these view functions potentially scramble my data?

In addition, I will have a continually-running background thread that will be populating my database. This background thread will be calling some of the same library functions that my view functions will be calling. Is this a potential thread-safety issue?

If yes, what are the best practices? I’m assuming just using python’s locking mechanism will work, but are there better approaches?

Thanks!

-Travis

  • 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-23T14:14:58+00:00Added an answer on May 23, 2026 at 2:14 pm

    For long running processes, use Celery.

    For a long view, you can create a model instance, and start a celery task which populates it. A view can show the status of this instance, with self refreshing html until the results are there.

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

Sidebar

Related Questions

I have a view controller class that has to implement several protocols. Too keep
I currently have a list view which has several rows of data and I
Requirements : I have a table of several thousand questions. Users can view these
Scenario: I have a partial view that is used in several places across my
I would like to have a view that is extended to several other views
I have several types os root view controller that I want to instantiate one
In my view (that is being uploaded by a dialog) I have several tabs
I have a class CardStack . I have several classes that inherit from CardStack
I have an application with a view containing several subviews. The subviews did not
Hi I have a view with several User Controls and I pass ViewData to

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.