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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:53:11+00:00 2026-05-26T17:53:11+00:00

I’m building a network of services, and all the services are completely different from

  • 0

I’m building a network of services, and all the services are completely different from one another, and now I’m creating a dashboard to make the experience easier to work with, creating an automatic list of the services the user uses most.

But if I want to find out which products the users use the most, how would I do that without causing heavy overload on the server? By that, I mean whenever a user goes to a page on that service, ie http://foo.com/bar/nyancattastic2.php I would find the keyword (app name) being ‘bar’, and then add a hit, by updating the row where the username is matched to ‘bar’ in my database with hits=hits+1

Although, putting that on every page would really destroy my server with an update query on every page.

Any ideas? Alternatively, I could ask the user what their favorite apps are, but that’s more a UX question.

Any help greatly appreciated!

Cheers,
Karan

Edit* The levels of traffic I expect are around 3-10 Queries/Second without this suggested change!

Thanks for all the answers!

  • 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-26T17:53:11+00:00Added an answer on May 26, 2026 at 5:53 pm

    Well it depends on your load, if there are several queries per seconds, it can become a problem because when you do an update field = field + 1, you do an implicit lock on the field.

    If you do have that level of traffic, you can consider instead to write a line to a log file and post process it, or add a line to a mysql table, that will get periodically aggregated. Another idea is parse the webserver logs.

    I personally got bitten by this update field + 1, when I tried to use it on a heavy traffic national soccer website, so yes, it can become a problem, but only at high levels of traffic.

    Also check out the idea of Michael, to randomly sample users in case the load is really too high. With 3-5 queries per second you don’t have to worry, of course it depends on the server, but problems are likely to happen around hundred queries per second.

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have a text area in my form which accepts all possible characters from
Let's say I'm outputting a post title and in our database, it's Hello Y’all
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
I am reading a book about Javascript and jQuery and using one of the
this is what i have right now Drawing an RSS feed into the php,
I am currently running into a problem where an element is coming back from
We're building an app, our first using Rails 3, and we're having to build
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this

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.