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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T10:53:54+00:00 2026-05-19T10:53:54+00:00

For statistical purposes, I need to keep a log of each time a certain

  • 0

For statistical purposes, I need to keep a log of each time a certain instance of a Model is viewed in Django. I started off by creating a separate model, Stats, that contains a ManyToMany field to another Model that stores the date and time of the access. Every time the object is accessed in a view, I update the associated Stats object.

There are 2 problems with this approach (if not more):

  1. It violates the principle of not writing any data on a GET request.
  2. More importantly, it’s really slow, especially because several objects can be viewed at once. This results in a visible delay when the page is loaded.

So my question is, is there a better way of doing this? If not, what techniques are available to speed things up, such as delayed writes to the DB? I’ve never worked with that kind of thing in Django, so any advice would be appreciated.

  • 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-19T10:53:55+00:00Added an answer on May 19, 2026 at 10:53 am

    Right, well, it seems Celery looks like a good option.

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

Sidebar

Related Questions

For statistical purposes, I need to find out related keywords . So, I want
I am working on some statistical code and exploring different ways of creating samples
I need to get the statistical details( memory details, object allocations etc.) , when
For statistical reasons, I want an extensive analysis from a dataset. I already have
I have lots of tables with statistical data (environment related) and wondering if there
Is Latent Semantic Indexing (LSI) a Statistical Classification algorithm? Why or why not? Basically,
A good RNG ought to pass several statistical tests of randomness. For example, uniform
I'm trying to evaluate the purchase of a statistical tool. This will be used
I'm looking for a basic software for statistical analysis. Most important is simple and
I've setup some Nunit tests for validating my statistical formulas within my .net v2

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.