<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>MySQL Forums - Document Store [X Dev API, Shell, JSON]</title>
        <description>Forum for MySQL Document Store [X Dev API, Shell, JSON]</description>
        <link>https://forums.mysql.com/list.php?176</link>
        <lastBuildDate>Mon, 18 May 2026 13:08:46 +0000</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://forums.mysql.com/read.php?176,728075,728075#msg-728075</guid>
            <title>JSON Storage Size Issue (no replies)</title>
            <link>https://forums.mysql.com/read.php?176,728075,728075#msg-728075</link>
            <description><![CDATA[ Hello.<br />
<br />
We are using the json column to store some data in the table. For a particular row when we checked the JSON_STORAGE_SIZE( table.json_colum) the size used is 280KB. But the plain text json data size is just 1kb and also when we checked the SELECT JSON_STORAGE_SIZE(&#039;JSON_data&#039;), the size required was 1.5kb.<br />
<br />
Can someone explain why the table consumes a lot of storage size? What can we do to fix this?<br />
<br />
Please let me know if needed any more information.<br />
<br />
Thanks]]></description>
            <dc:creator>Preetham KV</dc:creator>
            <category>Document Store [X Dev API, Shell, JSON]</category>
            <pubDate>Wed, 23 Oct 2024 08:30:34 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?176,710248,710248#msg-710248</guid>
            <title>Introducing JSON/Relational Duality for MySQL REST Service (no replies)</title>
            <link>https://forums.mysql.com/read.php?176,710248,710248#msg-710248</link>
            <description><![CDATA[ Introducing JSON/Relational Duality for MySQL REST Service<br />
- <a href="https://blogs.oracle.com/mysql/post/introducing-jsonrelational-duality-for-mysql-rest-service"  rel="nofollow">https://blogs.oracle.com/mysql/post/introducing-jsonrelational-duality-for-mysql-rest-service</a>]]></description>
            <dc:creator>Edwin Desouza</dc:creator>
            <category>Document Store [X Dev API, Shell, JSON]</category>
            <pubDate>Thu, 19 Oct 2023 19:10:52 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?176,709006,709006#msg-709006</guid>
            <title>I have a problem about  that troubles me (no replies)</title>
            <link>https://forums.mysql.com/read.php?176,709006,709006#msg-709006</link>
            <description><![CDATA[ if i use  &quot; select  ord from  dababaseName.tableName  order by  ord&quot; ,i can get this  result &quot;1 2 3 4 5 6 7&quot;.<br />
but ,when i use &quot;select  json_arrayagg(b.ord)  from  (select  * from databaseName.tableName as a order by a.ord) as b order by d.ord&quot; .i  only get this  result &quot;[1,2,3,4,6,7,5]&quot;.  <br />
<br />
i use  &quot;order by a.ord&quot;  in  this  select ,but why  i  can&#039;t  get true order .<br />
<br />
who  can  save me, i have this  trouble]]></description>
            <dc:creator>lmssee T</dc:creator>
            <category>Document Store [X Dev API, Shell, JSON]</category>
            <pubDate>Sat, 13 May 2023 10:39:50 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?176,707505,707505#msg-707505</guid>
            <title>Introducing the MySQL REST Service (no replies)</title>
            <link>https://forums.mysql.com/read.php?176,707505,707505#msg-707505</link>
            <description><![CDATA[ Introducing the MySQL REST Service:<br />
- <a href="https://blogs.oracle.com/mysql/post/introducing-the-mysql-rest-service"  rel="nofollow">https://blogs.oracle.com/mysql/post/introducing-the-mysql-rest-service</a>]]></description>
            <dc:creator>Edwin Desouza</dc:creator>
            <category>Document Store [X Dev API, Shell, JSON]</category>
            <pubDate>Wed, 15 Feb 2023 22:38:21 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?176,707463,707463#msg-707463</guid>
            <title>SQLite `json_tree` equivalent (no replies)</title>
            <link>https://forums.mysql.com/read.php?176,707463,707463#msg-707463</link>
            <description><![CDATA[ Hi,<br />
<br />
Does there exist in MySQL, or does anyone know of any plans to create, the equivalent of the `json_tree` table-valued function in SQLite?<br />
<br />
SELECT fullKey, atom FROM json_tree(&#039;<br />
{<br />
  &quot;grandparent1&quot;: {<br />
    &quot;parent1a&quot;: {<br />
      &quot;child1a1&quot;: {<br />
        &quot;name&quot;: &quot;Alice&quot;<br />
      },<br />
      &quot;child1a2&quot;: {<br />
        &quot;name&quot;: &quot;Bob&quot;<br />
      }<br />
    },<br />
    &quot;parent1b&quot;: {<br />
      &quot;child1b1&quot;: {<br />
        &quot;name&quot;: &quot;Carol&quot;<br />
      }<br />
    }<br />
  }<br />
}<br />
&#039;);<br />
<br />
$|<br />
$.grandparent1|<br />
$.grandparent1.parent1a|<br />
$.grandparent1.parent1a.child1a1|<br />
$.grandparent1.parent1a.child1a1.name|Alice<br />
$.grandparent1.parent1a.child1a2|<br />
$.grandparent1.parent1a.child1a2.name|Bob<br />
$.grandparent1.parent1b|<br />
$.grandparent1.parent1b.child1b1|<br />
$.grandparent1.parent1b.child1b1.name|Carol<br />
<br />
Many thanks,<br />
Hamish]]></description>
            <dc:creator>Hamish Allan</dc:creator>
            <category>Document Store [X Dev API, Shell, JSON]</category>
            <pubDate>Thu, 09 Feb 2023 17:10:01 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?176,705914,705914#msg-705914</guid>
            <title>JSON_ARRAY_APPEND  adding escape slash (12 replies)</title>
            <link>https://forums.mysql.com/read.php?176,705914,705914#msg-705914</link>
            <description><![CDATA[ I am using MySQL 5.7.<br />
<br />
The code will eventually be run in a stored procedure, but I am running in Query editor for debugging.<br />
<br />
The following code is inserting \ in as an escape character.  The basis of the code is from another forum, but I can&#039;t see why it won&#039;t work.<br />
<br />
-- SET @i = NULL;<br />
 SET @i = JSON_ARRAY(JSON_OBJECT(&#039;a&#039;, &#039;1&#039;, &#039;b&#039;, &#039;2&#039;));<br />
 SET @j = JSON_OBJECT(&#039;c&#039;, &#039;3&#039;, &#039;d&#039;, &#039;3&#039;);<br />
-- SET @j = CAST(&#039;{&quot;a&quot;: &quot;1&quot;}&#039; AS JSON);<br />
SET @a = IF( @i IS NULL OR JSON_TYPE(@i) != &#039;ARRAY&#039;,<br />
              JSON_ARRAY_APPEND(JSON_ARRAY(), &#039;$&#039;, @j),<br />
              JSON_ARRAY_APPEND(@i, &#039;$&#039;, @j)<br />
             );<br />
 SELECT @j, @a<br />
<br />
Results<br />
@j	@a<br />
{&quot;c&quot;: &quot;3&quot;, &quot;d&quot;: &quot;3&quot;}	[{&quot;a&quot;: &quot;1&quot;, &quot;b&quot;: &quot;2&quot;}, &quot;{\\&quot;c\\&quot;: \\&quot;3\\&quot;, \\&quot;d\\&quot;: \\&quot;3\\&quot;}&quot;]<br />
<br />
Note that in my query editor it is only one slash at a time.<br />
<br />
I have tried JSON_UNQUOTE and a great number of different arrangements, but I cna&#039;t get rid of the escape character.  I have read one post suggesting using the REPLACE function, but it seems unlikely to me the developers would have required that.]]></description>
            <dc:creator>Derek McKinnon</dc:creator>
            <category>Document Store [X Dev API, Shell, JSON]</category>
            <pubDate>Tue, 23 Aug 2022 05:04:17 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?176,705243,705243#msg-705243</guid>
            <title>Power automate json (2 replies)</title>
            <link>https://forums.mysql.com/read.php?176,705243,705243#msg-705243</link>
            <description><![CDATA[ I am making flow with power automate which is taking email body and then i am trying to choose specific details from that.<br />
<br />
Flow is:<br />
<br />
1.Catching email<br />
<br />
2.Making email html to text<br />
<br />
3.Making newline and splitNewLines<br />
<br />
Filtering for array.<br />
But my problem is that my Json is coming with one big strings.<br />
<br />
  {<br />
     &quot;body&quot;: [<br />
           &quot;Customer: James&quot;,<br />
           &quot;CustomerId: 1234&quot;,<br />
           &quot;Address: Street 123&quot;,<br />
           &quot;Phone: 123455123&quot;<br />
            ]<br />
  }<br />
      <br />
So they are not coming like this:<br />
<br />
{<br />
 &quot;body&quot;: [<br />
       &quot;Customer&quot;: &quot;James&quot;,<br />
       &quot;CustomerId&quot;: &quot;1234&quot;,<br />
       &quot;Address&quot;: &quot;Street 123&quot;,<br />
       &quot;Phone&quot;: &quot;123455123&quot;<br />
        ]<br />
}]]></description>
            <dc:creator>pavan hnk</dc:creator>
            <category>Document Store [X Dev API, Shell, JSON]</category>
            <pubDate>Wed, 23 Nov 2022 07:48:16 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?176,703584,703584#msg-703584</guid>
            <title>Use of SessionStateChanged_CURRENT_SCHEMA? (1 reply)</title>
            <link>https://forums.mysql.com/read.php?176,703584,703584#msg-703584</link>
            <description><![CDATA[ Heya,<br />
<br />
I have been looking at the X Plugin source and I don&#039;t see the CURRENT_SCHEMA notice being used. It is also not used in the connectors (which are doing a SELECT DATABASE() ..).<br />
<br />
Wouldn&#039;t it be great if after the authentication (which can include the schema), this notice is provided. Or with every query, so that `USE` triggers it?<br />
<br />
Or is the notice SessionStateChanged_CURRENT_SCHEMA not to be used, deprecated?]]></description>
            <dc:creator>Geert Vanderkelen</dc:creator>
            <category>Document Store [X Dev API, Shell, JSON]</category>
            <pubDate>Tue, 07 Mar 2023 05:48:49 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?176,699236,699236#msg-699236</guid>
            <title>for json path, for json auto (3 replies)</title>
            <link>https://forums.mysql.com/read.php?176,699236,699236#msg-699236</link>
            <description><![CDATA[ I&#039;m switching a project over from mssql to mysql.  In many places there are SELECT statements with &#039;FOR JSON PATH&#039; appended to the end which with mssql returns formatted JSON, which is then sent to the user via a webapi.<br />
<br />
I can see that I can create objects in my C# code, load them up with data, and return the objects which will be converted into JSON.<br />
<br />
Does MySQL have something similar or equivalent to &#039;FOR JSON PATH&#039;, in order to avoid having to create the classes for the json conversion process?]]></description>
            <dc:creator>leland knight</dc:creator>
            <category>Document Store [X Dev API, Shell, JSON]</category>
            <pubDate>Fri, 15 Oct 2021 00:21:48 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?176,695678,695678#msg-695678</guid>
            <title>Store base64 String using X dev API (no replies)</title>
            <link>https://forums.mysql.com/read.php?176,695678,695678#msg-695678</link>
            <description><![CDATA[ Dear All,<br />
<br />
we need to user My SQL Document Store as File Storage and is it possible to store base64 String using X dev API. if possible will it be a performance issue when data retrieving ?<br />
<br />
Than You !!!]]></description>
            <dc:creator>shashi asanka</dc:creator>
            <category>Document Store [X Dev API, Shell, JSON]</category>
            <pubDate>Wed, 31 Mar 2021 04:15:06 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?176,694691,694691#msg-694691</guid>
            <title>Searching in a nested array (1 reply)</title>
            <link>https://forums.mysql.com/read.php?176,694691,694691#msg-694691</link>
            <description><![CDATA[ Perhaps this belongs in the newbie forum. I couldn&#039;t find any documentation about a particular search case. Suppose I have a collection &quot;scifi_lovers&quot; of documents in this format:<br />
<br />
{<br />
  &quot;firstname&quot;:&quot;John&quot;,<br />
  &quot;lastname&quot;:&quot;Smith&quot;,<br />
  &quot;books&quot;:[<br />
    {&quot;title&quot;:&quot;Dune&quot;, &quot;author&quot;:&quot;Frank Herbert&quot;},<br />
    {&quot;title&quot;:&quot;Fahrenheit 451&quot;. &quot;author&quot;:&quot;Ray Bradbury&quot;}<br />
  ]<br />
}<br />
<br />
How would I use X DevAPI to find documents where the &quot;books&quot; array contains a specific title?]]></description>
            <dc:creator>Karl Hörnell</dc:creator>
            <category>Document Store [X Dev API, Shell, JSON]</category>
            <pubDate>Wed, 24 Feb 2021 12:49:03 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?176,690781,690781#msg-690781</guid>
            <title>Benchmarking (1 reply)</title>
            <link>https://forums.mysql.com/read.php?176,690781,690781#msg-690781</link>
            <description><![CDATA[ Hi , I have created mysql document store database and imported data from couchbase using json file, I would like to do some kind of benchmarking, Can you please suggest what took i can use to do benchmarking for mysql document store database ?]]></description>
            <dc:creator>Rushikesh Socha</dc:creator>
            <category>Document Store [X Dev API, Shell, JSON]</category>
            <pubDate>Thu, 05 Nov 2020 17:21:35 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?176,690153,690153#msg-690153</guid>
            <title>MySQL:  which clients were connected to a server ? (no replies)</title>
            <link>https://forums.mysql.com/read.php?176,690153,690153#msg-690153</link>
            <description><![CDATA[ MySQL:  which clients were connected to a server ?<br />
<a href="http://schlueters.de/blog/archives/189-Using-JSON-features-to-restructure-results.html"  rel="nofollow">http://schlueters.de/blog/archives/189-Using-JSON-features-to-restructure-results.html</a>]]></description>
            <dc:creator>Edwin Desouza</dc:creator>
            <category>Document Store [X Dev API, Shell, JSON]</category>
            <pubDate>Thu, 17 Sep 2020 17:58:22 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?176,689950,689950#msg-689950</guid>
            <title>MySQL: Generated Columns and virtual indexes (no replies)</title>
            <link>https://forums.mysql.com/read.php?176,689950,689950#msg-689950</link>
            <description><![CDATA[ <a href="https://blog.koehntopp.info/2020/09/07/mysql-generated-columns-and-virtual-indexes.html"  rel="nofollow">https://blog.koehntopp.info/2020/09/07/mysql-generated-columns-and-virtual-indexes.html</a>]]></description>
            <dc:creator>Edwin Desouza</dc:creator>
            <category>Document Store [X Dev API, Shell, JSON]</category>
            <pubDate>Mon, 07 Sep 2020 20:15:41 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?176,689893,689893#msg-689893</guid>
            <title>MySQL: Basic usage of the JSON data type (no replies)</title>
            <link>https://forums.mysql.com/read.php?176,689893,689893#msg-689893</link>
            <description><![CDATA[ MySQL: Basic usage of the JSON data type<br />
— <a href="https://blog.koehntopp.info/2020/09/03/mysql-json-data-type.html"  rel="nofollow">https://blog.koehntopp.info/2020/09/03/mysql-json-data-type.html</a>]]></description>
            <dc:creator>Edwin Desouza</dc:creator>
            <category>Document Store [X Dev API, Shell, JSON]</category>
            <pubDate>Fri, 04 Sep 2020 20:02:55 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?176,686496,686496#msg-686496</guid>
            <title>NoSQL Development in MySQL Using Python (no replies)</title>
            <link>https://forums.mysql.com/read.php?176,686496,686496#msg-686496</link>
            <description><![CDATA[ <a href="https://chandanmysqltricks.blogspot.com/2020/04/nosql-development-in-mysql-using-python.html"  rel="nofollow">https://chandanmysqltricks.blogspot.com/2020/04/nosql-development-in-mysql-using-python.html</a>]]></description>
            <dc:creator>Edwin Desouza</dc:creator>
            <category>Document Store [X Dev API, Shell, JSON]</category>
            <pubDate>Mon, 20 Apr 2020 15:25:35 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?176,686462,686462#msg-686462</guid>
            <title>How could I read out only a part of a database column? (no replies)</title>
            <link>https://forums.mysql.com/read.php?176,686462,686462#msg-686462</link>
            <description><![CDATA[ Hey, <br />
<br />
i have a entry in a database column as the following: <br />
<br />
<br />
[{&quot;id&quot;:&quot;1&quot;,&quot;is_email&quot;:&quot;false&quot;,&quot;add_to_day_hour_info&quot;:&quot;false&quot;,&quot;add_to_day_hour_body&quot;:&quot;false&quot;,&quot;translation&quot;:&quot;Naam:&quot;,&quot;value&quot;:&quot;J.van Roode&quot;},{&quot;id&quot;:&quot;2&quot;,&quot;is_email&quot;:&quot;false&quot;,&quot;add_to_day_hour_info&quot;:&quot;false&quot;,&quot;add_to_day_hour_body&quot;:&quot;false&quot;,&quot;translation&quot;:&quot;Straatnaam \/ huisnummer:&quot;,&quot;value&quot;:&quot;Boswilg 25&quot;},{&quot;id&quot;:&quot;7&quot;,&quot;is_email&quot;:&quot;false&quot;,&quot;add_to_day_hour_info&quot;:&quot;false&quot;,&quot;add_to_day_hour_body&quot;:&quot;false&quot;,&quot;translation&quot;:&quot;Postcode:&quot;,&quot;value&quot;:&quot;1853AA&quot;},{&quot;id&quot;:&quot;9&quot;,&quot;is_email&quot;:&quot;false&quot;,&quot;add_to_day_hour_info&quot;:&quot;false&quot;,&quot;add_to_day_hour_body&quot;:&quot;false&quot;,&quot;translation&quot;:&quot; Plaatsnaam:&quot;,&quot;value&quot;:&quot;Heiloo&quot;},{&quot;id&quot;:&quot;10&quot;,&quot;is_email&quot;:&quot;false&quot;,&quot;add_to_day_hour_info&quot;:&quot;false&quot;,&quot;add_to_day_hour_body&quot;:&quot;false&quot;,&quot;translation&quot;:&quot;Telefoonnummer:&quot;,&quot;value&quot;:&quot;0725615318&quot;},{&quot;id&quot;:&quot;3&quot;,&quot;is_email&quot;:&quot;true&quot;,&quot;add_to_day_hour_info&quot;:&quot;false&quot;,&quot;add_to_day_hour_body&quot;:&quot;false&quot;,&quot;translation&quot;:&quot;Email&quot;,&quot;value&quot;:&quot;J.vanroode@ziggo.nl&quot;},{&quot;id&quot;:&quot;19&quot;,&quot;is_email&quot;:&quot;false&quot;,&quot;add_to_day_hour_info&quot;:&quot;false&quot;,&quot;add_to_day_hour_body&quot;:&quot;false&quot;,&quot;translation&quot;:&quot;LET OP !! U ontvangt de bevestiging alleen per E-mail.&quot;,&quot;value&quot;:&quot;true&quot;},{&quot;id&quot;:&quot;29&quot;,&quot;is_email&quot;:&quot;false&quot;,&quot;add_to_day_hour_info&quot;:&quot;false&quot;,&quot;add_to_day_hour_body&quot;:&quot;false&quot;,&quot;translation&quot;:&quot;Ja, Ik ga accoord met de reserveringsvoorwaarden van enjoybooking, en de nieuwe algemene verordening persoonsgevens &quot;,&quot;value&quot;:&quot;true&quot;},{&quot;id&quot;:&quot;24&quot;,&quot;is_email&quot;:&quot;false&quot;,&quot;add_to_day_hour_info&quot;:&quot;false&quot;,&quot;add_to_day_hour_body&quot;:&quot;false&quot;,&quot;translation&quot;:&quot;Bijzonderheden:&quot;,&quot;value&quot;:&quot;Als er is graag balkon &quot;}]<br />
<br />
<br />
Now I want to read out only the LAST ID Field with the Bijzonderheden Part in the last text section and I only need to display the value: <br />
<br />
&quot;Als er is graag balkon&quot; <br />
<br />
The column in the database is called &quot;form&quot; - how could I only read out this part of the entry and not the whole entry? <br />
<br />
At the moment I read it out with the following command: <br />
<br />
					<br />
if( !in_array( &#039;Bijzonderheden&#039;, $csvReservationHeader ) ) {<br />
				        array_push($csvReservationHeader, &#039;Bijzonderheden&#039;);<br />
			        }<br />
			        array_push($csvReservation, $reservation[&#039;form&#039;]);<br />
			        array_push($excelReservationsData, &#039;&lt;td&gt;&#039;.$reservation[&#039;form&#039;].&#039;&lt;/td&gt;&#039;);<br />
<br />
if (!array_key_exists(&#039;form&#039;, $jsonReservationsData)) {<br />
				        $jsonReservationsData[&#039;form&#039;] = array();<br />
			        }<br />
			        @array_push($jsonReservationsData[&#039;form&#039;], $reservation[&#039;form&#039;]);<br />
					<br />
<br />
Hope to get help from you :-) 					<br />
<br />
Best regards <br />
Daniel]]></description>
            <dc:creator>DAniel Hofmann</dc:creator>
            <category>Document Store [X Dev API, Shell, JSON]</category>
            <pubDate>Sun, 19 Apr 2020 10:26:24 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?176,686294,686294#msg-686294</guid>
            <title>MySQL versus MongoDB for storing JSON documents in a doc-store database – which is faster? (no replies)</title>
            <link>https://forums.mysql.com/read.php?176,686294,686294#msg-686294</link>
            <description><![CDATA[ MySQL versus MongoDB for storing JSON documents in a doc-store database – which is faster?<br />
-  <a href="https://scriptingmysql.wordpress.com/2020/04/10/mysql-versus-mongodb-for-storing-json-documents-in-a-doc-store-database-which-is-faster/"  rel="nofollow">https://scriptingmysql.wordpress.com/2020/04/10/mysql-versus-mongodb-for-storing-json-documents-in-a-doc-store-database-which-is-faster/</a>]]></description>
            <dc:creator>Edwin Desouza</dc:creator>
            <category>Document Store [X Dev API, Shell, JSON]</category>
            <pubDate>Fri, 10 Apr 2020 18:33:37 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?176,685020,685020#msg-685020</guid>
            <title>Trigger crashing due to invalid json path (no replies)</title>
            <link>https://forums.mysql.com/read.php?176,685020,685020#msg-685020</link>
            <description><![CDATA[ Hi folks.<br />
I did a trigger to keep a table updated with a JSON field that stores key-values fetched from a &quot;master&quot; table.<br />
Doing my initial import (insert into t1 from select(... from t2)) it crashes after a while with the message<br />
<br />
Invalid JSON path expression. The error is around character position 10.<br />
<br />
I&#039;m building my JSON path by concatenating a string and there are no strange characters in the variables names.<br />
<br />
Any clues on what I can do to fix/debug this?<br />
<br />
here&#039;s my trigger<br />
<br />
CREATE DEFINER=`root`@`localhost` TRIGGER `datatable_insert` AFTER INSERT ON `datatable` FOR EACH ROW BEGIN<br />
	DECLARE mystr char;<br />
	IF exists (SELECT data,inst, eq FROM laravel.datastore WHERE `data`=NEW.`data` and inst=NEW.inst and eq=NEW.eq) THEN<br />
		SET @mystr = CONCAT(&quot;$.&quot;,NEW.var);<br />
		UPDATE laravel.datastore SET var=JSON_SET(var,@mystr,NEW.val) WHERE `data`=NEW.data and inst=NEW.inst and eq=NEW.eq;<br />
	ELSE<br />
		INSERT INTO laravel.datastore (data,inst,eq,var) VALUES (NEW.data,NEW.inst,NEW.eq,JSON_OBJECT(NEW.var,NEW.val));<br />
    END IF;<br />
END<br />
<br />
<br />
thanks in advance]]></description>
            <dc:creator>Nuno Donato</dc:creator>
            <category>Document Store [X Dev API, Shell, JSON]</category>
            <pubDate>Mon, 09 Mar 2020 12:28:02 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?176,684373,684373#msg-684373</guid>
            <title>Wix:  Lessons from Working with NoSQL in a SQL DB &amp; MySQL JSON Data Type Migration (no replies)</title>
            <link>https://forums.mysql.com/read.php?176,684373,684373#msg-684373</link>
            <description><![CDATA[ Wix:  Lessons from Working with NoSQL in a SQL DB &amp; MySQL JSON Data Type Migration<br />
- <a href="https://medium.com/wix-engineering/watch-lessons-from-working-with-nosql-in-a-sql-db-mysql-json-data-type-migration-2bb3f674b514"  rel="nofollow">https://medium.com/wix-engineering/watch-lessons-from-working-with-nosql-in-a-sql-db-mysql-json-data-type-migration-2bb3f674b514</a>]]></description>
            <dc:creator>Edwin Desouza</dc:creator>
            <category>Document Store [X Dev API, Shell, JSON]</category>
            <pubDate>Mon, 10 Feb 2020 21:55:53 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?176,683806,683806#msg-683806</guid>
            <title>generated _id by MySQL Server (2 replies)</title>
            <link>https://forums.mysql.com/read.php?176,683806,683806#msg-683806</link>
            <description><![CDATA[ Hi Forum,<br />
<br />
I need help.<br />
<br />
When I used Collections as Relational Tables<br />
<br />
MySQL server don&#039;t generate _id.<br />
<br />
Is is true?<br />
<br />
Thank!]]></description>
            <dc:creator>Arik Fastovsky</dc:creator>
            <category>Document Store [X Dev API, Shell, JSON]</category>
            <pubDate>Sun, 19 Jan 2020 20:06:01 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?176,683384,683384#msg-683384</guid>
            <title>Could anyone share commands and gcc environment for building MySQL shell? (no replies)</title>
            <link>https://forums.mysql.com/read.php?176,683384,683384#msg-683384</link>
            <description><![CDATA[ Hi All,<br />
<br />
Does anyone know what commands and GCC environment were used for building the official mysqlsh binary file and the RPM?<br />
<br />
I was trying to build MySQL shell with the source code.<br />
My final target is to build an RPM which could run on my hosts without upgrade libstdc++ of version libstdc++.so.6.0.0.19. - Just as what the official RPM did.<br />
<br />
For the first step I tried to build it with &quot;cmake&quot; and &quot;make mysqlsh&quot;, following the INSTALL document. However, the GCC version on my compiling machine is 7.2, the mysqlsh I built has dependencies on libstdc++.so.6.0.0.24 which corresponding lib for GCC 7.2.<br />
I also tried GCC 5.3 and 4.8, but some errors occurred during compiling.<br />
<br />
I hope to find a way to build a similar binary file like the official one. Does anyone have some suggestions? Thank you in advance!<br />
<br />
Here are some differences of dynamic library references between official binary file and mine:<br />
Official binary file mysqlsh:<br />
Dynamic Section:<br />
  NEEDED               libstdc++.so.6<br />
  ...<br />
Version References:<br />
  required from libstdc++.so.6:<br />
    0x0297f860 0x00 25 GLIBCXX_3.4.10<br />
    0x0bafd172 0x00 19 CXXABI_1.3.2<br />
    0x02297f89 0x00 14 GLIBCXX_3.4.9<br />
    0x0bafd173 0x00 12 CXXABI_1.3.3<br />
    0x0297f861 0x00 10 GLIBCXX_3.4.11<br />
    0x056bafd3 0x00 09 CXXABI_1.3<br />
    0x08922974 0x00 07 GLIBCXX_3.4<br />
    ...<br />
<br />
mysqlsh binary file I built with GCC 7.2.<br />
Dynamic Section:<br />
  NEEDED               libstdc++.so.6<br />
  ...<br />
Version References:<br />
  required from libstdc++.so.6:<br />
    0x0bafd178 0x00 29 CXXABI_1.3.8<br />
    0x02297f85 0x00 28 GLIBCXX_3.4.5<br />
    0x0297f869 0x00 27 GLIBCXX_3.4.19<br />
    0x0297f867 0x00 25 GLIBCXX_3.4.17<br />
    0x02297f89 0x00 23 GLIBCXX_3.4.9<br />
    0x0bafd175 0x00 20 CXXABI_1.3.5<br />
    0x0297f863 0x00 19 GLIBCXX_3.4.13<br />
    0x0afd17f1 0x00 18 CXXABI_1.3.11<br />
    0x0297f864 0x00 17 GLIBCXX_3.4.14<br />
    0x0bafd173 0x00 16 CXXABI_1.3.3<br />
    0x0297f872 0x00 15 GLIBCXX_3.4.22<br />
    0x0297f865 0x00 14 GLIBCXX_3.4.15<br />
    0x0297f871 0x00 13 GLIBCXX_3.4.21<br />
    0x0297f868 0x00 12 GLIBCXX_3.4.18<br />
    0x0bafd179 0x00 11 CXXABI_1.3.9<br />
    0x0297f861 0x00 09 GLIBCXX_3.4.11<br />
    0x056bafd3 0x00 07 CXXABI_1.3<br />
    0x0297f870 0x00 06 GLIBCXX_3.4.20<br />
    0x0bafd172 0x00 05 CXXABI_1.3.2<br />
    0x08922974 0x00 02 GLIBCXX_3.4<br />
    ...<br />
<br />
Happy new year!]]></description>
            <dc:creator>Victor wen</dc:creator>
            <category>Document Store [X Dev API, Shell, JSON]</category>
            <pubDate>Wed, 01 Jan 2020 00:59:22 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?176,678362,678362#msg-678362</guid>
            <title>importJson failed which include mongo date type file (1 reply)</title>
            <link>https://forums.mysql.com/read.php?176,678362,678362#msg-678362</link>
            <description><![CDATA[ Hi, <br />
I tried importing <a href="https://raw.githubusercontent.com/mongodb/docs-assets/primer-dataset/primer-dataset.json"  rel="nofollow">https://raw.githubusercontent.com/mongodb/docs-assets/primer-dataset/primer-dataset.json</a> file as following :<br />
<br />
util.importJson(&quot;/home/mysql/primer-dataset.json&quot;,{collection:&quot;restaurants&quot;,convertBsonTypes:true})ut <br />
<br />
but the following error occurred :<br />
<br />
Importing from file &quot;/home/mysql/primer-dataset.json&quot; to collection `testdb`.`restaurants` in MySQL Server at mysqlgr1:33060<br />
<br />
<br />
Processed 0 bytes in 0 documents in 0.0013 sec (0.00 documents/s)<br />
Total successfully imported documents 0 (0.00 documents/s)<br />
Util.importJson: Unexpected data, expected to find a string processing extended JSON for $date at offset 189 (ArgumentError)<br />
<br />
When I change convertBsonTypes:true to false, the import was successful but $date data are inserted as is.<br />
<br />
How can I convert $date format? and how to find the exact error?]]></description>
            <dc:creator>MIN SOO CHO</dc:creator>
            <category>Document Store [X Dev API, Shell, JSON]</category>
            <pubDate>Thu, 17 Oct 2019 09:21:05 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?176,677213,677213#msg-677213</guid>
            <title>Three New JSON Functions in MySQL 8.0.17 (no replies)</title>
            <link>https://forums.mysql.com/read.php?176,677213,677213#msg-677213</link>
            <description><![CDATA[ <a href="https://elephantdolphin.blogspot.com/2019/07/three-new-json-functions-in-mysql-8017.html"  rel="nofollow">https://elephantdolphin.blogspot.com/2019/07/three-new-json-functions-in-mysql-8017.html</a>]]></description>
            <dc:creator>Edwin Desouza</dc:creator>
            <category>Document Store [X Dev API, Shell, JSON]</category>
            <pubDate>Mon, 22 Jul 2019 15:18:21 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?176,677205,677205#msg-677205</guid>
            <title>JSON Schema Validation with MySQL 8.0.17 (no replies)</title>
            <link>https://forums.mysql.com/read.php?176,677205,677205#msg-677205</link>
            <description><![CDATA[ JSON has become the standard document interchange format over the last several years.  MySQL 5.7 added a native JSON data type and it has been  greatly enhanced with version 8.0.  But many in the relational world have complained the the NoSQL approach does not allow you to have rigor on your data. That is to make sure an integer value is really an integer and within specified ranges or string of the proper length. And there was no way to make sure that email addresses are not listed under a combination of E-mail, e-mail, eMail, and eMAIL.  JSON is great for many things but traditional, normalized data was better for making certain that your data matched what was specified.<br />
<br />
If only there was a way to enforce come rigor on JSON data! Or a way to annotate (pronounced &#039;document&#039;) your JSON data. Well there is. MySQL 8.0.17 has added the ability to validate JSON documents against a schema following the guidelines of the JSON-Schema.org&#039;s fourth draft standard. You can find both the manual page 12.17.7 JSON Schema Validation Functions and the JSON Schema information online.<br />
<br />
<a href="https://elephantdolphin.blogspot.com/2019/07/json-schema-validation-with-mysql-8017.html"  rel="nofollow">https://elephantdolphin.blogspot.com/2019/07/json-schema-validation-with-mysql-8017.html</a>]]></description>
            <dc:creator>David Stokes</dc:creator>
            <category>Document Store [X Dev API, Shell, JSON]</category>
            <pubDate>Mon, 22 Jul 2019 13:29:05 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?176,676499,676499#msg-676499</guid>
            <title>TableInsert options for INSERT IGNORE and REPLACE INTO? (no replies)</title>
            <link>https://forums.mysql.com/read.php?176,676499,676499#msg-676499</link>
            <description><![CDATA[ Hi,<br />
<br />
Any plans to support these variations on INSERTs in mysqlx? Or are they supported elsewhere in the API?<br />
<br />
Thanks,<br />
<br />
-b]]></description>
            <dc:creator>Brady Brown</dc:creator>
            <category>Document Store [X Dev API, Shell, JSON]</category>
            <pubDate>Mon, 08 Jul 2019 19:05:16 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?176,674462,674462#msg-674462</guid>
            <title>MySQL DocStore:  Import from MongoDB (no replies)</title>
            <link>https://forums.mysql.com/read.php?176,674462,674462#msg-674462</link>
            <description><![CDATA[ Import from MongoDB:<br />
- <a href="https://lefred.be/content/top-10-reasons-for-nosql-with-mysql/"  rel="nofollow">https://lefred.be/content/top-10-reasons-for-nosql-with-mysql/</a><br />
- <a href="https://mysqlserverteam.com/importing-data-from-mongodb-to-mysql-bson-data-types/"  rel="nofollow">https://mysqlserverteam.com/importing-data-from-mongodb-to-mysql-bson-data-types/</a><br />
- <a href="https://mysqlserverteam.com/importing-data-from-mongodb-to-mysql-using-python/"  rel="nofollow">https://mysqlserverteam.com/importing-data-from-mongodb-to-mysql-using-python/</a><br />
- <a href="https://mysqlserverteam.com/importing-data-from-mongodb-to-mysql-using-javascript/"  rel="nofollow">https://mysqlserverteam.com/importing-data-from-mongodb-to-mysql-using-javascript/</a>]]></description>
            <dc:creator>Edwin Desouza</dc:creator>
            <category>Document Store [X Dev API, Shell, JSON]</category>
            <pubDate>Mon, 29 Apr 2019 04:30:25 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?176,672961,672961#msg-672961</guid>
            <title>MySQL 8.0:  Window Functions for JSON (no replies)</title>
            <link>https://forums.mysql.com/read.php?176,672961,672961#msg-672961</link>
            <description><![CDATA[ MySQL 8.0:  Window Functions for JSON<br />
<a href="https://mysqlserverteam.com/json-specific-window-functions-in-mysql-8-0/"  rel="nofollow">https://mysqlserverteam.com/json-specific-window-functions-in-mysql-8-0/</a>]]></description>
            <dc:creator>Edwin Desouza</dc:creator>
            <category>Document Store [X Dev API, Shell, JSON]</category>
            <pubDate>Thu, 21 Feb 2019 17:08:24 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?176,672652,672652#msg-672652</guid>
            <title>Importing Data from MongoDB to MySQL: BSON Data Types (no replies)</title>
            <link>https://forums.mysql.com/read.php?176,672652,672652#msg-672652</link>
            <description><![CDATA[ <a href="https://mysqlserverteam.com/importing-data-from-mongodb-to-mysql-bson-data-types/"  rel="nofollow">https://mysqlserverteam.com/importing-data-from-mongodb-to-mysql-bson-data-types/</a>]]></description>
            <dc:creator>Edwin Desouza</dc:creator>
            <category>Document Store [X Dev API, Shell, JSON]</category>
            <pubDate>Fri, 08 Feb 2019 22:15:39 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?176,671546,671546#msg-671546</guid>
            <title>MySQL Connector/NodeJS:  working with result sets (no replies)</title>
            <link>https://forums.mysql.com/read.php?176,671546,671546#msg-671546</link>
            <description><![CDATA[ MySQL Connector/NodeJS:  working with result sets<br />
<a href="https://insidemysql.com/working-with-result-sets-in-connector-node-js/"  rel="nofollow">https://insidemysql.com/working-with-result-sets-in-connector-node-js/</a>]]></description>
            <dc:creator>Edwin Desouza</dc:creator>
            <category>Document Store [X Dev API, Shell, JSON]</category>
            <pubDate>Wed, 19 Dec 2018 13:28:47 +0000</pubDate>
        </item>
    </channel>
</rss>
