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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T23:43:44+00:00 2026-05-30T23:43:44+00:00

I’m working on a zend project which has functionality based on user logged minutes.

  • 0

I’m working on a zend project which has functionality based on user logged minutes. It needs to be able to generate reports based on date ranges. I’m hoping someone can help me figure out the best way to handle storing that information.

I am using a users table to handle all of the essential profile information. I would imagine the best case would be to link this to another table to track the minutes… im just not wrapping my mind around how it should lay out. I have seen some pages that suggest using columns in the database for the dates but that seems to me like it would become unmanageable quickly.

With the current site at 1500 users and multiple users submitting every day… im just not sure how id go about it.

Any help would be great.
Thanks

  • 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-30T23:43:45+00:00Added an answer on May 30, 2026 at 11:43 pm

    One approach, based on what I think you’re looking for:

    Create a User_Session table containing a User_ID FK, a Start_Time, and an End_Time. Write a new row to this table every time a user starts and ends a session. You can grab these User_ID and Start_Time at login, and grab End_Time when the session ends or the user logs off.

    Now you’ve got a historical table with [1500 users] x [number of sessions per day] which I’d call large but not unimaginably so. (Especially seeing how it’s properly indexed and so forth.) You can run queries against that table, something like SELECT User_ID, SUM(End_Time – Start_Time) so to speak, against whatever date ranges you need.

    To control the table size, you could in turn store these aggregated values (User_ID, MMYY, Num_Minutes) and truncate the source table on some set schedule. Storing calculated fields may not preferable to having the normalized data on hand, though. So maybe don’t go that route until you’ve determined that the source table size is a big issue.

    Just one of many ways, and oversimplified for clarity’s sake.

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

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want to count how many characters a certain string has in PHP, but
I am trying to understand how to use SyndicationItem to display feed which is
I used javascript for loading a picture on my website depending on which small
Basically, what I'm trying to create is a page of div tags, each has
I've got a string that has curly quotes in it. I'd like to replace
Configuring TinyMCE to allow for tags, based on a customer requirement. My config is
I need to clean up various Word 'smart' characters in user input, including but

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.