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

  • Home
  • SEARCH
  • 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 8643447
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T12:02:29+00:00 2026-06-12T12:02:29+00:00

I have a GWT/Java/Hibernate/MySQL application (but I think any web pattern could be valid)

  • 0

I have a GWT/Java/Hibernate/MySQL application (but I think any web pattern could be valid) that do a CRUD on several objects. Each object is stored in a table in the database. I want to implement an action logger. For example for Object A I want to know who created it and modified it, and for User B, what actions did he perform.

My idea is to have a History table that stores : UserId, ObjectId, ActionName. The UserId and ObjectId are foreign keys. Am I on the right track ?

  • 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-06-12T12:02:31+00:00Added an answer on June 12, 2026 at 12:02 pm

    I also think this is the right direction.
    However, bare in mind that in an application with lots of traffic, this logs can become overhead.
    I would suggest the following in this case –
    A. Don’t use hibernate for this “action logging” – Hibernate has better performance for “mostly read DB”
    B. Consider DB that is better in “mostly write” scenario for the action logging table.
    You can try to look for a NoSQL solution for this.
    C. If you use such NoSQL DB, but still want to keep the logging actions in the relational DB, have an offline process that runs once in a day for example), that will query your “action logging DB” and will insert it to the relational DB.
    D. If it’s ok that your system might lose some action logging, consider using producer/consumer pattern (for example – use a queue between producer and consumer thread) – the threads that need to log actions will not log them synchronously, but will log them asynchronously.
    E. In addition, don’t forget that such logging table has the potential to be over-flooded in time, causing queries on it to take a long time.
    For these issues consider the following:
    E.1. Every day remove really old logs – let’s say – older than month, or move them to some “backup” table.
    E.2 Index some fields that you mostly use for action logging queries (for example – maybe an action_type) field.

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

Sidebar

Related Questions

Our application is a Java-GWT application that uses Guice-Persist and Guice-Servlet extensively. We have
I have gwt-project that is comunication to database. Application design mvp pattern and view
I have a GWT based web application that I have previously uploaded to Appspot.
I have a Java/GWT application. In that there is a list of items. If
I have a Java (6) application which uses Hibernate (V3.3.2) to read data from
I have gwt web project, which must use application.properties (on client side) loaded as
I have a few native gwt methods in my java class that I would
I have a native Javascript method in one of my GWT Java classes, but
I have a GWT application that has RPC service on its back end. I'm
I have a GWT application that includes an embedded applet. I would like to

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.