Skip to content

Instantly share code, notes, and snippets.

@gustavorps
Last active August 29, 2015 14:27
Show Gist options
  • Save gustavorps/710a517149f7a94ac088 to your computer and use it in GitHub Desktop.
Save gustavorps/710a517149f7a94ac088 to your computer and use it in GitHub Desktop.
Question - MongoDB for Time Series Data: Schema Design

How this schema is possible in JSON?

{
  speed: { 0: 63, 1: 58, .., 58: 66, 59: 64}
}

Because... you know... EMACS... first char cannot be a number.

Or I should read like this?

{
  speed: [ [0, 63], [1, 58], .., [58, 66], [59, 64] ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment