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

The Archive Base Latest Questions

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

How can I cache counters for views. I have about 1000 pageviews per second

  • 0

How can I cache counters for views.

I have about 1000 pageviews per second and there are about 10 counters that are updated each time. Now the problem is that it is resulting in about 10000 updates/inserts per second and I was wondering if there was way I could cache the counter and then do the update in bulk to speed up the dataabse.

How to cache counters to speed up the database inserts?

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-05-25T02:05:54+00:00Added an answer on May 25, 2026 at 2:05 am
    • I guess you’re using an RDBMS like MySQL, well, try something other like Redis or MongoDB. 10000 updates/sec should be fine.
    • Write a small application in C/C++ that does the caching and bulk updates. If the server crashes you’ll lose the cached data but this is just plain counters so you don’t really care about it, right? If you already use PHP/Perl/Python for the pages you can also try to use some built-in storage for the caching which lives beyond a single request’s lifetime.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can a (||any) proxy server cache content that is requested by a client over
Can someone post any simple explanation of cache aware algorithms? There are lot of
How can i make a cached object re-cache it self with updated info when
How many types of cache is there in asp.net and how can implement it
How can I roll my own counter cache for a self-referential many-to-many relationship that
Is there a simple way to cache MySQL queries in PHP or failing that,
I have an application that create child's gifts applications, and every application owner can
I use the will_paginate plug-in. In oder to generate routes that I can cache
Is there a way I can cache user info on the clients system? For
I added a counter cache but can't get it to update. But I can

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.