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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T06:30:37+00:00 2026-05-14T06:30:37+00:00

I recently inherited an e-commerce app (Java/Struts) that I’m porting to Rails. The thing

  • 0

I recently inherited an e-commerce app (Java/Struts) that I’m porting to Rails.

The thing is, we frequently have to do forensics on orders by poring through the log files, and with the old app’s logs (log4j wall of text) it’s pretty hard to make sense of the individual orders when several people are placing orders simultaneously.

So I’m soliciting advice on a good strategy for logging of these orders, like maybe logging each individual order to its own MongoDB collection based on unique cart ID? Or maybe group them by IP address? Something different entirely?

Essentially, what is the best approach for logging of an online store so that it’s easy to backtrace each user’s interaction with the site?

  • 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-14T06:30:37+00:00Added an answer on May 14, 2026 at 6:30 am

    You shouldn’t log each order to its own collection, as collections incur too much overhead. I’d have a single collection containing all interactions. The decide if you want to store one or multiple documents per order. If you store just one document per order, that document can contain an array of ‘interaction’ documents. It’s easy to push another interaction onto each document.

    If you’re going to do lots of slicing and dicing of interactions, then I’d say one document per action, adding the appropriate indexes for the kinds of queries you’ll be doing.

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

Sidebar

Related Questions

I have recently inherited a J2EE Struts web app that was written back in
I have inherited an app that generates a large array for every user that
I have inherited a WiX project from a contractor that recently left. When I
I have recently inherited some Java code and need to integrate it into a
I recently inherited a small Java program that takes information from a large database,
I recently inherited a VBA macro that needs to have validation logic added to
I recently inherited an old merb app that uses datamapper as its orm. I'm
I recently inherited an iPhone app. The original developer did not understand memory management
I recently inherited a Ubuntu Hardy box that acts rather funky out-of-the-box. The first
I recently inherited a large codebase and am having to read it. The thing

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.