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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:15:05+00:00 2026-05-27T05:15:05+00:00

I am writing a Activity tracker for a grails application. Objective : To Log

  • 0

I am writing a Activity tracker for a grails application.
Objective : To Log Usage Hours and browsed pages so that I can analyse logged in user’s activity pattern.

My current planned solution : Make two tables, One named ‘activity’, second ‘browsed_page’ Activity table will store user_id, jsessionid, date_created, validtill.
and browsed_page will have activity_id and browsed_url. The javascript on every pages will be executed for checking mouse activity every 5 minutes, if it detects mousemove, it will make a ajax request to the conroller and the controller logs accordingly.

Initially, validtill will be 5 minutes plus the date_created, which will be updated to be current_time + 5 minutes, if the activity is detected and ajax request is made.

My question : Is this system reliable performance wise? I mean, after every 5 minutes, or new page browsed, update is run on activity table to update validtill time. When the application grows and it starts having millions of records, will those updates hamper the performance? Can I get some suggestion what can I do to improve my system?

  • 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-27T05:15:06+00:00Added an answer on May 27, 2026 at 5:15 am

    I would skip the part about mouse movements and just piggy back the usage statistics onto the normal actions the user does against your application. I guess that almost all interaction on the site generates a call to to the application.

    Make sure that tracking is configurable so that you can turn it off if it hogs the system.

    When it comes to tables I believe in doing it in just one table that you only ever write to. No updates, searches or deletes. That is the cheapest way of doing it.

    Then you would do analysis “off line”, possibly on a statistics replica of the database.

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

Sidebar

Related Questions

I'm writing an application that starts with a loading activity. In the loading activity
I'm writing a simple application that uses sockets . I have an activity that
If one application is writing all its activity data in one log file, is
I'm writing my first Android application and I have one activity that I'd like
I'm currently writing a class to handle all database-activity in my application, and so
I am writing an activity, that loads data from a server and displays it
I am writing a android application where, on startup activity view, I have a
I'm writing an app that has a foreground service, content provider, and a Activity
I am writing an application that connects to a web service in a background
I am currently writing an app that within a certain activity, we want 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.