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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T20:55:03+00:00 2026-05-10T20:55:03+00:00

I am developing a page view counter to track the amount of views a

  • 0

I am developing a page view counter to track the amount of views a page is having on our site and displaying it to the user. (I asked an intro question before: Page View Counter like on StackOverFlow).

Using the recommendations, I developed a httpHandler which will handle the request whenever this gets fired off:

<link rel='stylesheet' href='cn.axd?t=1&id=232' type='text/css' /> 
  1. Just wondering if the end-user would need to wait for the request to be finish processing before they can view/interact with the page.

  2. Would a better choice be implementing an asynchronous queue where information gets logged to an MS Queue and eventually logged in the database via (Exception Policy)

  3. Would it be slower to check if a certain record exist (PageID) and increment a counter or insert the record into the database and aggregate later when needed. We would just need to run an aggregation at the end of the week to see the total amount of pageviews a particular page got over the week.

Thanks all.

  • 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. 2026-05-10T20:55:03+00:00Added an answer on May 10, 2026 at 8:55 pm

    interesting questions! Like a lot of other performance-tuning questions, there are some tradeoffs.

    1. Possibly. It may be a better idea to load this handler inside an IMG href=”, setting the sizes to 0 so it is invisible to the user.

    2. With heavy load this would be preferable, that way your handler can return immediately after queuing the operation. For most loads, however, it is probably just as quick to run a simple T-SQL query to increment a counter.

    3. Adding +1 to the value directly within your T-SQL query would probably be the best, ‘count = count + 1’ etc. That would be quick to run and would result in subsequent retrieval of your data without aggregation.

    Hope this helps!

    Adam

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

Sidebar

Related Questions

I am developing a user profile page, which has two modes - view and
I'm developing a single-page view for a resource that contains multiple nested resources. Using
I'm developing a page that will present the user with a content slider, so
I'm developing web page which has main file index.php as follows: include('UserClass.php'); include('html/top.php'); $user
I'm developing a Facebook Page Tab app where a user will be drawing on
I am developing Android Application having ContactUs Page having Phone Number. I had given
I am developing a page that needs to be able to view on a
M developing an application which starts with a login page. After loggin the user
I am developing a site where admins can log in and then view the
(This is for a codeigniter project) I'm developing a user-profile page, that lists the

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.