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

json datatype #245

Closed
dimitri-yatsenko opened this issue Sep 14, 2016 · 1 comment · Fixed by #1051
Closed

json datatype #245

dimitri-yatsenko opened this issue Sep 14, 2016 · 1 comment · Fixed by #1051
Assignees
Labels
Milestone

Comments

@dimitri-yatsenko
Copy link
Member

dimitri-yatsenko commented Sep 14, 2016

MySQL 5.7 and MySQL 8.0 offer the JSON datatype as do the new releases of other major RDBMSs (RedShift, PostgreSQL, Oracle). This will allow storing semistructured data in fields while keeping its components addressable in queries.

This has the potential for greatly simplifying some schema design. For example, instead of having different tables for different visual stimuli, one table can be used with a json field for the stimulus parameters, which can differ for each type of stimulus. This will simplify the great majority of queries.

Normalization and strict schemas are essential for the overall design but sometimes a less rigid approach is more appropriate for cases where dependent attributes are allowed to vary between tuples.

I propose to add support for the json datatype. Inserting a structure will add it as a json object (unordered set of key-value pairs). Simplified restriction syntax will enable restrictions by individual values of a json object. One should be able to do something like

vis.Condition() & 'parameters.contrast>0.5'

where parameter is a json type and contrast is a key value in some of the tuples. This will return all conditions for which there is a contrast key and its value is greater than 0.5.

@dimitri-yatsenko dimitri-yatsenko self-assigned this Sep 14, 2016
@dimitri-yatsenko dimitri-yatsenko added this to the Release 0.4 milestone Sep 14, 2016
@dimitri-yatsenko
Copy link
Member Author

AWS supports MySQL 5.7 but not Aurora yet.
https://aws.amazon.com/blogs/aws/amazon-rds-update-support-for-mysql-5-7/

I think this will be one of the most important features that will be the answer to many NOSQL questions.

@dimitri-yatsenko dimitri-yatsenko changed the title json fields json datatype Oct 4, 2016
@dimitri-yatsenko dimitri-yatsenko removed this from the Release 0.4 milestone Apr 17, 2017
@dimitri-yatsenko dimitri-yatsenko added this to the Release 0.11 milestone Jul 26, 2017
@dimitri-yatsenko dimitri-yatsenko modified the milestones: Release 0.11, Release 0.13 Jan 17, 2018
@eywalker eywalker removed this from the Release 0.13 milestone Aug 1, 2019
@eywalker eywalker added this to the Concept milestone Apr 14, 2020
@guzman-raphael guzman-raphael linked a pull request Sep 10, 2022 that will close this issue
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants