MySQL Forums
Forum List  »  Newbie

Re: UNIX_TIMESTAMP Duplicate key
Posted by: Martin Beaudet
Date: January 13, 2010 07:08AM

Thank you Rick,

We have already thought of building a summary table, but it is not possible. Since data may be accessed by various parameters.

Example:
   - Get the average value with an interval of 30 minutes between the dates 2009-10-15 and 2009-12-23.

   - Get the maximum values with an interval of 2 minutes between the dates 2010-01-02 and 2010-01-03

   - Retrieve the minimum values with an interval of 2 days between the date 2008-01-01 and 2008-01-01
  
   - ...

In short, the viewing parameters are configurable from a web interface and the user is free to groups and limit viewing based on what he wants.

Perhaps to get better performance, It would make more sense to use the TIMESTAMP and forget about the problem with the date superior to 2038. As you said, before this date the software will probably be replaced.

Options: ReplyQuote


Subject
Written By
Posted
January 08, 2010 07:48PM
January 10, 2010 03:57PM
January 11, 2010 01:31AM
January 11, 2010 11:26PM
January 12, 2010 11:37PM
Re: UNIX_TIMESTAMP Duplicate key
January 13, 2010 07:08AM
January 13, 2010 09:32AM
January 13, 2010 09:08PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.