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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T14:45:24+00:00 2026-06-01T14:45:24+00:00

I would like to store some analytics figures. For example, the amount of times

  • 0

I would like to store some analytics figures. For example, the amount of times a user performed action X or the amount of users that have logged in in the past day, etc.

Would the best practice for this be to add another table to my existing application database? Or to add a new database here? I’m thinking the second option would be a bit overkill.

  • 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-01T14:45:25+00:00Added an answer on June 1, 2026 at 2:45 pm

    It depends entirely on your business/security/public interest needs, use cases, and funding.

    For example, if, by analytics, you mean “Working out how many anonymous people read this tiny public wiki”, then a table will probably be fine. If that wiki grows, then you might want a separate DB for performance reasons.

    If, however, the analytics DB will include information about site members — especially information that does NOT need to be stored directly on the public website — then you have a legal responsibility to take all reasonable precautions to safeguard the data. That may mean storing it in a separate business-internal DB, rather than on your public-facing site DB.

    At the very least, you should have separate DB connection settings, separate connections, and separate cursors for your analytics in the web app, so that it’s easy to split them off to a separate DB later. This is often done to separate reads and writes in webapps, so you should be able to find examples of it, if you’re stuck.

    Past a certain small site load, you’re going to want it in a separate DB for performance, no matter what. Unless you’re using some kind of distributed, horizontally-scalable DB that’s built for performance anyway, that is.

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

Sidebar

Related Questions

We would like to some processing in a Java application, store the results in
I use a byte to store some flag like 10101010 , and I would
For some small programs in Python, I would like to set, store and retrieve
I would like to create a file which stores some data that can be
I have this string stored in a variable: IN=bla@some.com;john@home.com Now I would like to
I have a certificate .p12 and .crt and I would like store the public
I would like to store some business flags (like: isFavorite, isOnLive etc.) per an
I would like to store some objects only for one request through the session
I would like to write a custom web analytics and action tracking solution and
I'd like some opinions on the practical implications of moving processing that would traditionally

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.