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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T09:16:14+00:00 2026-05-19T09:16:14+00:00

I am looking for real-world implementations: Use case is this -> I store the

  • 0

I am looking for real-world implementations:
Use case is this -> I store the user login details (mode, session, browser, OS, etc) in the session table. I have a activity table where i track activities that FKs to session table.

Now when a user takes an activity on an object like “Create a photo” I want to include all the details with it like the browser the user used to upload the image, his IP address, etc. So all the fields in the session table.

On a good day you would normally FK the session_Id with the photo table and join to pull that data. But what if i duplicate the same 6-7 colunms in the photo and each object table to prevent joins/FKs?

I want to know what works in the real world on large scale user content sites.

  • 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-19T09:16:15+00:00Added an answer on May 19, 2026 at 9:16 am

    If you’re not expecting the details (browser, IP address, etc) to change during a session, why duplicate the data? Just associate each photo (or more generally, every activity instance) with the session_id that it was uploaded.

    On the other hand, if you are expecting the details to change however once someone has logged in (which can occur — think of someone having a new IP address when they login to your site on network 1, sleep their laptop, move to a new network, and then un-sleep, such that their browser retains the cookie even though the IP address changes), I would either:

    • Treat those as different sessions OR

    • Create a CLIENT_INFO table and make
      it a 1:M association with SESSION, so
      that you can maintain one logical
      session, but support multiple CLIENT
      instances.

    If I were you, and I really needed those details, I would probably do the latter.

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

Sidebar

Related Questions

What real-world projects would you suggest looking through the sources? As I'm learning Java
for a paper I'm looking for an real-life C function which uses volatile variables.
I'm looking for ideas and opinions here, not a real answer, I guess... Back
Looking at the C# project templates in VS2008 and the offerings are WPF User
Looking for feedback on : http://code.google.com/p/google-perftools/wiki/GooglePerformanceTools
Looking for an example that: Launches an EXE Waits for the EXE to finish.
Looking for C# class which wraps calls to do the following: read and write
Looking at what's running and nothing jumps out. Thanks!
Looking to do a very small, quick 'n dirty side project. I like the
Looking for a Linux application (or Firefox extension) that will allow me to scrape

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.