Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DB schema uses datetime with 1-second granularity #1

Open
trevorcarlson opened this issue Mar 19, 2014 · 3 comments
Open

DB schema uses datetime with 1-second granularity #1

trevorcarlson opened this issue Mar 19, 2014 · 3 comments
Assignees

Comments

@trevorcarlson
Copy link

The currently default datetime type in MySQL uses second granularity.

Expanding to sub-second granularity might allow us to re-enable checks for duplicate entries. Adding an integer parameter to the DATETIME type in the schema allows one to specify the number of digits of resolution. See (https://dev.mysql.com/doc/refman/5.7/en/fractional-seconds.html) for more details.

@aohren
Copy link
Contributor

aohren commented Mar 19, 2014

Agreed. I'd actually even like to change it to a plain long integer type.
Though in actual practice, sampling times >1 sec might generate a
ridiculous amount of data that's not very useful.

On Wed, Mar 19, 2014 at 3:15 PM, trevorcarlson [email protected]:

The currently default datetime type in MySQL uses second granularity.

Expanding to sub-second granularity might allow us to re-enable checks for
duplicate entries. Adding an integer parameter to the DATETIME type in the
schema allows one to specify the number of digits of resolution. See (
https://dev.mysql.com/doc/refman/5.7/en/fractional-seconds.html) for more
details.


Reply to this email directly or view it on GitHubhttps://github.com//issues/1
.

@trevorcarlson
Copy link
Author

Yep, I completely agree, but there might be times when you want to log for a short high-res burst. Just an idea, nothing needed right now. :)

On Mar 19, 2014, at 8:28 PM, Adam Ohren [email protected] wrote:

Agreed. I'd actually even like to change it to a plain long integer type.
Though in actual practice, sampling times >1 sec might generate a
ridiculous amount of data that's not very useful.

On Wed, Mar 19, 2014 at 3:15 PM, trevorcarlson [email protected]:

The currently default datetime type in MySQL uses second granularity.

Expanding to sub-second granularity might allow us to re-enable checks for
duplicate entries. Adding an integer parameter to the DATETIME type in the
schema allows one to specify the number of digits of resolution. See (
https://dev.mysql.com/doc/refman/5.7/en/fractional-seconds.html) for more
details.


Reply to this email directly or view it on GitHubhttps://github.com//issues/1
.


Reply to this email directly or view it on GitHub.

@aeratek
Copy link
Contributor

aeratek commented Mar 19, 2014

Might be worth checking out what the Conveyal folks implemented for their Android platform, since we know they did protocol buffers. I believe it's also a github project; the links can probably be found through Kevin Webb's posts on conveyal.com

On Mar 19, 2014, at 2:36 PM, trevorcarlson [email protected] wrote:

Yep, I completely agree, but there might be times when you want to log for a short high-res burst. Just an idea, nothing needed right now. :)

On Mar 19, 2014, at 8:28 PM, Adam Ohren [email protected] wrote:

Agreed. I'd actually even like to change it to a plain long integer type.
Though in actual practice, sampling times >1 sec might generate a
ridiculous amount of data that's not very useful.

On Wed, Mar 19, 2014 at 3:15 PM, trevorcarlson [email protected]:

The currently default datetime type in MySQL uses second granularity.

Expanding to sub-second granularity might allow us to re-enable checks for
duplicate entries. Adding an integer parameter to the DATETIME type in the
schema allows one to specify the number of digits of resolution. See (
https://dev.mysql.com/doc/refman/5.7/en/fractional-seconds.html) for more
details.


Reply to this email directly or view it on GitHubhttps://github.com//issues/1
.


Reply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHub.

@aohren aohren self-assigned this Apr 5, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants