Submit Search
Upload
MySQL Rises with JSON Support
•
Download as PPTX, PDF
•
0 likes
•
291 views
Okcan Yasin Saygılı
Follow
MySQL Rises with JSON Support
Read less
Read more
Data & Analytics
Report
Share
Report
Share
1 of 19
Download now
Recommended
Optimizing Slow Queries with Indexes and Creativity
Optimizing Slow Queries with Indexes and Creativity
MongoDB
Indexing with MongoDB
Indexing with MongoDB
MongoDB
Fast querying indexing for performance (4)
Fast querying indexing for performance (4)
MongoDB
Indexing and Query Optimizer (Aaron Staple)
Indexing and Query Optimizer (Aaron Staple)
MongoSF
Jdbc oracle
Jdbc oracle
yazidds2
Indexing and Query Optimization
Indexing and Query Optimization
MongoDB
PHP with MYSQL
PHP with MYSQL
R.Karthikeyan - Vivekananda College
Di web tech mail (no subject)
Di web tech mail (no subject)
shubhamvcs
Recommended
Optimizing Slow Queries with Indexes and Creativity
Optimizing Slow Queries with Indexes and Creativity
MongoDB
Indexing with MongoDB
Indexing with MongoDB
MongoDB
Fast querying indexing for performance (4)
Fast querying indexing for performance (4)
MongoDB
Indexing and Query Optimizer (Aaron Staple)
Indexing and Query Optimizer (Aaron Staple)
MongoSF
Jdbc oracle
Jdbc oracle
yazidds2
Indexing and Query Optimization
Indexing and Query Optimization
MongoDB
PHP with MYSQL
PHP with MYSQL
R.Karthikeyan - Vivekananda College
Di web tech mail (no subject)
Di web tech mail (no subject)
shubhamvcs
MongoDB Performance Tuning
MongoDB Performance Tuning
MongoDB
MongoDB @ Frankfurt NoSql User Group
MongoDB @ Frankfurt NoSql User Group
Chris Harris
JSON improvements in MySQL 8.0
JSON improvements in MySQL 8.0
Mydbops
Developing on SQL Azure
Developing on SQL Azure
Ike Ellis
Indexing and Query Optimizer (Mongo Austin)
Indexing and Query Optimizer (Mongo Austin)
MongoDB
Mongo indexes
Mongo indexes
paradokslabs
Datacon LA - MySQL without the SQL - Oh my!
Datacon LA - MySQL without the SQL - Oh my!
Dave Stokes
Introduction to NOSQL And MongoDB
Introduction to NOSQL And MongoDB
Behrouz Bakhtiari
Cassandra summit keynote 2014
Cassandra summit keynote 2014
jbellis
Discover the Power of the NoSQL + SQL with MySQL
Discover the Power of the NoSQL + SQL with MySQL
Dave Stokes
Longhorn PHP - MySQL Indexes, Histograms, Locking Options, and Other Ways to ...
Longhorn PHP - MySQL Indexes, Histograms, Locking Options, and Other Ways to ...
Dave Stokes
บทที่ 4 การเพิ่มข้อมูลลงฐานข้อมูล
บทที่ 4 การเพิ่มข้อมูลลงฐานข้อมูล
Priew Chakrit
Insert
Insert
ไกรสรวัฒน์ ปัญโญ
Cassandra Summit 2013 Keynote
Cassandra Summit 2013 Keynote
jbellis
Indexing & Query Optimization
Indexing & Query Optimization
MongoDB
MySQL 8.0 Operational Changes
MySQL 8.0 Operational Changes
Dave Stokes
Cassandra 2.1
Cassandra 2.1
jbellis
MongoDB and Indexes - MUG Denver - 20160329
MongoDB and Indexes - MUG Denver - 20160329
Douglas Duncan
BGOUG15: JSON support in MySQL 5.7
BGOUG15: JSON support in MySQL 5.7
Georgi Kodinov
Optimizer percona live_ams2015
Optimizer percona live_ams2015
Manyi Lu
Php forum2015 tomas_final
Php forum2015 tomas_final
Bertrand Matthelie
[OSC 2020 Online/Nagoya] MySQLドキュメントストア
[OSC 2020 Online/Nagoya] MySQLドキュメントストア
Ryusuke Kajiyama
More Related Content
What's hot
MongoDB Performance Tuning
MongoDB Performance Tuning
MongoDB
MongoDB @ Frankfurt NoSql User Group
MongoDB @ Frankfurt NoSql User Group
Chris Harris
JSON improvements in MySQL 8.0
JSON improvements in MySQL 8.0
Mydbops
Developing on SQL Azure
Developing on SQL Azure
Ike Ellis
Indexing and Query Optimizer (Mongo Austin)
Indexing and Query Optimizer (Mongo Austin)
MongoDB
Mongo indexes
Mongo indexes
paradokslabs
Datacon LA - MySQL without the SQL - Oh my!
Datacon LA - MySQL without the SQL - Oh my!
Dave Stokes
Introduction to NOSQL And MongoDB
Introduction to NOSQL And MongoDB
Behrouz Bakhtiari
Cassandra summit keynote 2014
Cassandra summit keynote 2014
jbellis
Discover the Power of the NoSQL + SQL with MySQL
Discover the Power of the NoSQL + SQL with MySQL
Dave Stokes
Longhorn PHP - MySQL Indexes, Histograms, Locking Options, and Other Ways to ...
Longhorn PHP - MySQL Indexes, Histograms, Locking Options, and Other Ways to ...
Dave Stokes
บทที่ 4 การเพิ่มข้อมูลลงฐานข้อมูล
บทที่ 4 การเพิ่มข้อมูลลงฐานข้อมูล
Priew Chakrit
Insert
Insert
ไกรสรวัฒน์ ปัญโญ
Cassandra Summit 2013 Keynote
Cassandra Summit 2013 Keynote
jbellis
Indexing & Query Optimization
Indexing & Query Optimization
MongoDB
MySQL 8.0 Operational Changes
MySQL 8.0 Operational Changes
Dave Stokes
Cassandra 2.1
Cassandra 2.1
jbellis
MongoDB and Indexes - MUG Denver - 20160329
MongoDB and Indexes - MUG Denver - 20160329
Douglas Duncan
What's hot
(18)
MongoDB Performance Tuning
MongoDB Performance Tuning
MongoDB @ Frankfurt NoSql User Group
MongoDB @ Frankfurt NoSql User Group
JSON improvements in MySQL 8.0
JSON improvements in MySQL 8.0
Developing on SQL Azure
Developing on SQL Azure
Indexing and Query Optimizer (Mongo Austin)
Indexing and Query Optimizer (Mongo Austin)
Mongo indexes
Mongo indexes
Datacon LA - MySQL without the SQL - Oh my!
Datacon LA - MySQL without the SQL - Oh my!
Introduction to NOSQL And MongoDB
Introduction to NOSQL And MongoDB
Cassandra summit keynote 2014
Cassandra summit keynote 2014
Discover the Power of the NoSQL + SQL with MySQL
Discover the Power of the NoSQL + SQL with MySQL
Longhorn PHP - MySQL Indexes, Histograms, Locking Options, and Other Ways to ...
Longhorn PHP - MySQL Indexes, Histograms, Locking Options, and Other Ways to ...
บทที่ 4 การเพิ่มข้อมูลลงฐานข้อมูล
บทที่ 4 การเพิ่มข้อมูลลงฐานข้อมูล
Insert
Insert
Cassandra Summit 2013 Keynote
Cassandra Summit 2013 Keynote
Indexing & Query Optimization
Indexing & Query Optimization
MySQL 8.0 Operational Changes
MySQL 8.0 Operational Changes
Cassandra 2.1
Cassandra 2.1
MongoDB and Indexes - MUG Denver - 20160329
MongoDB and Indexes - MUG Denver - 20160329
Similar to MySQL Rises with JSON Support
BGOUG15: JSON support in MySQL 5.7
BGOUG15: JSON support in MySQL 5.7
Georgi Kodinov
Optimizer percona live_ams2015
Optimizer percona live_ams2015
Manyi Lu
Php forum2015 tomas_final
Php forum2015 tomas_final
Bertrand Matthelie
[OSC 2020 Online/Nagoya] MySQLドキュメントストア
[OSC 2020 Online/Nagoya] MySQLドキュメントストア
Ryusuke Kajiyama
ドキュメントデータベースとして MySQLを使う!? ~MySQL JSON UDF~
ドキュメントデータベースとして MySQLを使う!? ~MySQL JSON UDF~
yoyamasaki
MySQL's JSON Data Type and Document Store
MySQL's JSON Data Type and Document Store
Dave Stokes
MySQL Idiosyncrasies That Bite
MySQL Idiosyncrasies That Bite
Ronald Bradford
MySQL 5.7 + JSON
MySQL 5.7 + JSON
Morgan Tocker
Json improvements in my sql 8.0
Json improvements in my sql 8.0
Mysql User Camp
Webscale PostgreSQL - JSONB and Horizontal Scaling Strategies
Webscale PostgreSQL - JSONB and Horizontal Scaling Strategies
Jonathan Katz
Collaborate 2011– Leveraging and Enriching the Capabilities of Oracle Databas...
Collaborate 2011– Leveraging and Enriching the Capabilities of Oracle Databas...
djkucera
JSON in der Oracle Datenbank
JSON in der Oracle Datenbank
Ulrike Schwinn
A017650104
A017650104
IOSR Journals
Q-JSON - Reduced JSON schema with high Data Representation Efficiency
Q-JSON - Reduced JSON schema with high Data Representation Efficiency
iosrjce
My SQL Idiosyncrasies That Bite OTN
My SQL Idiosyncrasies That Bite OTN
Ronald Bradford
Using JSON with MariaDB and MySQL
Using JSON with MariaDB and MySQL
Anders Karlsson
PostgreSQL 9.4 JSON Types and Operators
PostgreSQL 9.4 JSON Types and Operators
Nicholas Kiraly
MySQL 5.7 NF – JSON Datatype 활용
MySQL 5.7 NF – JSON Datatype 활용
I Goo Lee
Oracle OpenWorld 2011– Leveraging and Enriching the Capabilities of Oracle Da...
Oracle OpenWorld 2011– Leveraging and Enriching the Capabilities of Oracle Da...
djkucera
MySQL 5.7. Tutorial - Dutch PHP Conference 2015
MySQL 5.7. Tutorial - Dutch PHP Conference 2015
Dave Stokes
Similar to MySQL Rises with JSON Support
(20)
BGOUG15: JSON support in MySQL 5.7
BGOUG15: JSON support in MySQL 5.7
Optimizer percona live_ams2015
Optimizer percona live_ams2015
Php forum2015 tomas_final
Php forum2015 tomas_final
[OSC 2020 Online/Nagoya] MySQLドキュメントストア
[OSC 2020 Online/Nagoya] MySQLドキュメントストア
ドキュメントデータベースとして MySQLを使う!? ~MySQL JSON UDF~
ドキュメントデータベースとして MySQLを使う!? ~MySQL JSON UDF~
MySQL's JSON Data Type and Document Store
MySQL's JSON Data Type and Document Store
MySQL Idiosyncrasies That Bite
MySQL Idiosyncrasies That Bite
MySQL 5.7 + JSON
MySQL 5.7 + JSON
Json improvements in my sql 8.0
Json improvements in my sql 8.0
Webscale PostgreSQL - JSONB and Horizontal Scaling Strategies
Webscale PostgreSQL - JSONB and Horizontal Scaling Strategies
Collaborate 2011– Leveraging and Enriching the Capabilities of Oracle Databas...
Collaborate 2011– Leveraging and Enriching the Capabilities of Oracle Databas...
JSON in der Oracle Datenbank
JSON in der Oracle Datenbank
A017650104
A017650104
Q-JSON - Reduced JSON schema with high Data Representation Efficiency
Q-JSON - Reduced JSON schema with high Data Representation Efficiency
My SQL Idiosyncrasies That Bite OTN
My SQL Idiosyncrasies That Bite OTN
Using JSON with MariaDB and MySQL
Using JSON with MariaDB and MySQL
PostgreSQL 9.4 JSON Types and Operators
PostgreSQL 9.4 JSON Types and Operators
MySQL 5.7 NF – JSON Datatype 활용
MySQL 5.7 NF – JSON Datatype 활용
Oracle OpenWorld 2011– Leveraging and Enriching the Capabilities of Oracle Da...
Oracle OpenWorld 2011– Leveraging and Enriching the Capabilities of Oracle Da...
MySQL 5.7. Tutorial - Dutch PHP Conference 2015
MySQL 5.7. Tutorial - Dutch PHP Conference 2015
Recently uploaded
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
sapnasaifi408
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdf
Lars Albertsson
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
Call Girls In Delhi Whatsup 9873940964 Enjoy Unlimited Pleasure
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
Pramod Kumar Srivastava
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Sapana Sha
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
Suhani Kapoor
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdf
Lars Albertsson
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
ranjana rawat
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
shivangimorya083
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Jack DiGiovanna
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
thyngster
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
soniya singh
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
Suhani Kapoor
How we prevented account sharing with MFA
How we prevented account sharing with MFA
Andrei Kaleshka
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
Sonatrach
DBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdf
John Sterrett
RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998
YohFuh
9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service
Sapana Sha
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptx
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptx
Abdelrhman abooda
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
Call Girls In Delhi Whatsup 9873940964 Enjoy Unlimited Pleasure
Recently uploaded
(20)
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdf
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdf
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
How we prevented account sharing with MFA
How we prevented account sharing with MFA
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
DBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdf
RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998
9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptx
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptx
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
MySQL Rises with JSON Support
1.
Copyright © 2015,
Oracle and/or its affiliates. All rights reserved. | MySQL Rises with JSON Support MySQL 5.7 Okcan Yasin Saygılı yasin.x.saygili@oracle.com
2.
Copyright © 2015,
Oracle and/or its affiliates. All rights reserved. Agenda 2 1.The new JSON data type 2.Inlined JSON path expressions 3.Indexing JSON data
3.
Copyright © 2015,
Oracle and/or its affiliates. All rights reserved. JSON Datatype 3 MySQL supports solid JSON data type and enables effect access to data in JSON documents. The JSONdata type support these advantages over storing JSON-format strings , •Automatic validation of JSON documents stored in JSON columns. •Optimized storage format. JSON documents stored in JSON columns are converted to an internal format that permits quick read access to document elements.
4.
Copyright © 2015,
Oracle and/or its affiliates. All rights reserved. JSON Datatype 4 •The size of JSON documents stored in JSON columns is limited to the value of the max allowed packet system variable •JSON columns cannot have a default value. •JSON columns cannot be indexed
5.
Copyright © 2015,
Oracle and/or its affiliates. All rights reserved. • mysql> SELECT JSON_ARRAY(1, "abc", NULL, TRUE, CURTIME()); • +---------------------------------------------+ • | JSON_ARRAY(1, "abc", NULL, TRUE, CURTIME()) | • +---------------------------------------------+ • | [1, "abc", null, true, "11:30:24.000000"] | • +---------------------------------------------+ 5 The New JSON Datatype Evaluates a (possibly empty) list of values and returns a JSON array containing those values.
6.
Copyright © 2015,
Oracle and/or its affiliates. All rights reserved. insert a value into a JSON 6 mysql> CREATE TABLE t1 (jdoc JSON); Query OK, 0 rows affected (0.20 sec) mysql> INSERT INTO t1 VALUES('{"key1": "value1", "key2": "value2"}'); Query OK, 1 row affected (0.01 sec) Attempting to insert a value into a JSON column succeeds if the value is a valid JSON value, but fails if it is not:
7.
Copyright © 2015,
Oracle and/or its affiliates. All rights reserved. Insert Value 7 mysql> SELECT JSON_INSERT(@j, '$[1].b[0]', 1, '$[2][2]', 2); +-----------------------------------------------+ | JSON_INSERT(@j, '$[1].b[0]', 1, '$[2][2]', 2) | +-----------------------------------------------+ | ["a", {"b": [true, false]}, [10, 20, 2]] | +-----------------------------------------------+ JSON_INSERT() adds new values but does not replace existing values:
8.
Copyright © 2015,
Oracle and/or its affiliates. All rights reserved. User Defined 8 JSON values can be assigned to user-defined variables: mysql> SET @j = JSON_OBJECT('key', 'value'); mysql> SELECT @j; +------------------+ | @j | +------------------+ | {"key": "value"} | +------------------+
9.
Copyright © 2015,
Oracle and/or its affiliates. All rights reserved. JSON Replace 9 JSON_REPLACE replaces existing values and ignores new values: mysql> SELECT JSON_REPLACE(@j, '$[1].b[0]', 1, '$[2][2]', 2); +------------------------------------------------+ | JSON_REPLACE(@j, '$[1].b[0]', 1, '$[2][2]', 2) | +------------------------------------------------+ | ["a", {"b": [1, false]}, [10, 20]] | +------------------------------------------------+
10.
Copyright © 2015,
Oracle and/or its affiliates. All rights reserved. JSON Remove 10 JSON_REMOVE() takes a JSON document and one or more paths that specify values to be removed from the document mysql> SELECT JSON_REMOVE(@j, '$[2]', '$[1].b[1]', '$[1].b[1]'); +---------------------------------------------------+ | JSON_REMOVE(@j, '$[2]', '$[1].b[1]', '$[1].b[1]') | +---------------------------------------------------+ | ["a", {"b": [true]}] | +---------------------------------------------------+
11.
Copyright © 2015,
Oracle and/or its affiliates. All rights reserved. Agenda 11 1.The new JSON data type 2.Inlined JSON path expressions 3.Indexing JSON data
12.
Copyright © 2015,
Oracle and/or its affiliates. All rights reserved. Inlined JSON Path Expressions mysql> CREATE TABLE employees (data JSON); Query OK, 0 rows affected (0,01 sec) mysql> INSERT INTO employees VALUES ('{"id": 1, "name": "Jane"}'); Query OK, 1 row affected (0,00 sec) MySQL 5.7.9 has a new feature, that simplifies queries that deal with JSON data and makes more human-readable: inlined JSON path expressions ,
13.
Copyright © 2015,
Oracle and/or its affiliates. All rights reserved. Inlined JSON Path Expressions mysql> INSERT INTO employees VALUES ('{"id": 2, "name": "Joe"}'); Query OK, 1 row affected (0,00 sec) mysql> SELECT * FROM employees WHERE data->'$.id'= 2; +--------------------------+ | data | +--------------------------+ | {"id": 2, "name": "Joe"} | +--------------------------+ 1 row in set (0,01 sec)
14.
Copyright © 2015,
Oracle and/or its affiliates. All rights reserved. Agenda 14 1.The new JSON data type 2.Inlined JSON path expressions 3.Indexing JSON data
15.
Copyright © 2015,
Oracle and/or its affiliates. All rights reserved. Indexing JSON Data • CREATE TABLE t1 ( data JSON, id INTEGER AS (JSON_EXTRACT(data,"$.id")) STORED, PRIMARY KEY(id)); – CREATE TABLE t2 ( data JSON, id INTEGER AS (JSON_EXTRACT(data,"$.id")) VIRTUAL, KEY(id)); 15 Use Functional Indexes Both STORED and VIRTUAL types are supported Examples:
16.
Copyright © 2015,
Oracle and/or its affiliates. All rights reserved. References • http://mysqlserverteam.com/inline-json-path-expressions-in-mysql-5-7/ • https://dev.mysql.com/doc/refman/5.7/en/json-search-functions.html • https://dev.mysql.com/doc/refman/5.7/en/json-search-functions.html • https://dev.mysql.com/doc/refman/5.7/en/json-functions.html • https://dev.mysql.com/doc/refman/5.7/en/json-search-functions.html • http://www.slideshare.net/GeorgiKodinov/bgoug-2014-developing-using-my-sql • http://www.slideshare.net/gkodinov/bgoug15-json-support-in-mysql-57?qid=409fcf82- 1139-498e-9f14-c4176d26212a&v=default&b=&from_search=1 And more … 16
17.
Copyright © 2015,
Oracle and/or its affiliates. All rights reserved. Questions ? 17
18.
Copyright © 2015,
Oracle and/or its affiliates. All rights reserved. Safe Harbor Statement The preceding is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle. 18
19.
Copyright © 2015,
Oracle and/or its affiliates. All rights reserved. 19
Download now