{"id":221283,"date":"2020-11-28T10:18:05","date_gmt":"2020-11-28T02:18:05","guid":{"rendered":"http:\/\/4563.org\/?p=221283"},"modified":"2020-11-28T10:18:05","modified_gmt":"2020-11-28T02:18:05","slug":"%e6%97%a2%e7%84%b6-mysql-%e5%b7%b2%e7%bb%8f%e6%94%af%e6%8c%81%e5%ad%98%e5%82%a8-json-%e6%95%b0%e6%8d%ae%e7%b1%bb%e5%9e%8b%ef%bc%8c%e8%bf%99%e6%98%af%e4%b8%8d%e6%98%af%e6%84%8f%e5%91%b3%e7%9d%80","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=221283","title":{"rendered":"\u65e2\u7136 mysql \u5df2\u7ecf\u652f\u6301\u5b58\u50a8 json \u6570\u636e\u7c7b\u578b\uff0c\u8fd9\u662f\u4e0d\u662f\u610f\u5473\u7740\u5b83\u53ef\u4ee5\u9876\u66ff\u5927\u90e8\u5206 NoSQL \u7684\u6570\u636e\u5e93\u5e94\u7528\u573a\u666f\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u65e2\u7136 mysql \u5df2\u7ecf\u652f\u6301\u5b58\u50a8 json \u6570\u636e\u7c7b\u578b\uff0c\u8fd9\u662f\u4e0d\u662f\u610f\u5473\u7740\u5b83\u53ef\u4ee5\u9876\u66ff\u5927\u90e8\u5206 NoSQL \u7684\u6570\u636e\u5e93\u5e94\u7528\u573a\u666f\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : oooolongtea <\/span>  <span><i><\/i> 3<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\">                        \u7a0b\u5e8f\u5458\u5c0f\u767d\u4e00\u679a\u3002\u6700\u8fd1\u5728\u9605\u8bfb\u6570\u636e\u5e93\u65b9\u9762\u7684\u4e66\u7c4d\u3002<br \/>NoSQL \u7279\u70b9\u5c31\u662f\u4e0d\u7528\u7ed9\u5b83\u7684\u6570\u636e\u89c4\u5b9a\u4e00\u4e2a\u6846\u67b6\u3002<br \/>\u90a3\u4e48 Mysql \u65e2\u7136\u5df2\u7ecf\u652f\u6301\u4e86 JSON \u7684\u6570\u636e\u7c7b\u578b\uff0c\u6211\u4eec\u80fd\u7528 mysql \u53bb\u9876\u66ff\u5927\u90e8\u5206 NoSQL \u7684\u5e94\u7528\u573a\u666f\u5417\uff1f\u6bd4\u5982\u6211\u4eec\u53ef\u4ee5\u628a\u4e00\u4e9b\u4e0d\u5e38\u88ab\u641c\u7d22\u5230\u3001\u4f46\u662f\u53c8\u5fc5\u987b\u5b58\u50a8\u7684\u5197\u4f59\u6570\u636e\u5b58\u50a8\u5230 mysql \u7684 json \u90a3\u4e00\u680f\u3002      <\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>18<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4463531\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : yrj <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5982\u679c\u6570\u636e\u589e\u957f\u4e0d\u591a\uff0c\u5f53\u7136\u53ef\u4ee5                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4463532\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : oooolongtea <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @yrj \u4f60\u7684\u610f\u601d\u662f\u6211\u4eec\u5b9e\u9645\u64cd\u4f5c\u91cc\uff0c\u7528 nosql \u7684\u65f6\u5019\uff0c\u4e00\u822c\u90fd\u662f\u56e0\u4e3a\u6570\u636e\u5728\u6bb5\u65f6\u95f4\u5185\u7206\u53d1\u5f0f\u589e\u957f\u5417\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4463533\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : dorothyREN <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             pg \u652f\u6301 json \u591a\u5c11\u5e74\u4e86\uff0c\u4e5f\u6ca1\u591a\u5c11\u4eba\u628a\u5b83\u5f53 noSQL \u7528\u554a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4463534\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : aijam <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6309\u8fd9\u9053\u7406\uff0c\u4f60\u4e5f\u53ef\u4ee5\u6587\u4ef6\u7cfb\u7edf\u76f4\u63a5\u5b58 JSON \u6587\u4ef6\uff0c\u4e5f\u80fd\u9876\u66ff\u5927\u90e8\u5206 NoSQL \u573a\u666f\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4463535\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : oooolongtea <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @dorothyREN @aijam \u6211\u8fd9\u4e0d\u662f\u5411\u5404\u4f4d\u8bf7\u6559\u5b9e\u9645\u7684\u60c5\u51b5\u561b\uff0c\u56e0\u4e3a\u6211\u63a5\u89e6\u8fd9\u4e9b\u6570\u636e\u5e93\u7684\u673a\u4f1a\u4e0d\u591a\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4463536\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : opengps <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53ef\u4ee5\u9876\u66ff\uff0c\u4f46\u662f\u672a\u5fc5\u4f1a\u88ab\u9009\u7528                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4463537\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lizheming <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7d22\u5f15\u67e5\u8be2\u9700\u6c42\u4e0d\u5f3a\u7684\u60c5\u51b5\u4e0b\u662f OK \u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4463538\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wudaye <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u7684\u4f7f\u7528\u4f53\u9a8c\u662f\u53ef\u7528\u4f46\u662f\u96be\u7528                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4463539\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : cmdOptionKana <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             NoSQL \u7684\u5e94\u7528\u573a\u666f\u672c\u6765\u5c31\u5c0f\uff0c\u591a\u6570\u60c5\u51b5\u4e0b\u7ecf\u5178 sql \u5c31\u591f\u7528\u4e86\u3002<\/p>\n<p>NoSQL \u6211\u4e5f\u4e0d\u592a\u5f88\u4e86\u89e3\uff0c\u597d\u50cf\u706b\u8fc7\u4e00\u9635\u5b50\u53c8\u6c89\u5bc2\u4e86\uff0c\u6211\u4e5f\u5f88\u597d\u5947\uff0c\u73b0\u5728\u5927\u5382\u5bf9 NoSQL \u662f\u4ec0\u4e48\u6001\u5ea6\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4463540\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : sean10 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @cmdOptionKana \u73b0\u5728\u662f newsql \u4e86\u5427                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4463541\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : dorothyREN <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @lizheming #7 pg \u7684 json \u662f\u652f\u6301\u7d22\u5f15\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4463542\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : love <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             nosql \u5e94\u7528\u573a\u666f\u975e\u5e38\u5c11\uff0c\u6240\u4ee5\u5f53\u7136\u662f\u53ef\u4ee5\u4ee3\u66ff\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4463543\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Jooooooooo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5f53\u7136<\/p>\n<p>\u56e0\u4e3a\u4f60\u641e\u9519\u4e86\u4e3a\u4ec0\u4e48\u8981\u7528 nosql                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4463544\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : xuanbg <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             NoSQL \u5f53\u7136\u662f\u5728\u5e94\u8be5\u7528\u7684\u65f6\u5019\u7528\u3002MongoDB \u6211\u4eec\u7528\u6765\u5b58\u5feb\u7167\u6570\u636e\uff0c\u5176\u4ed6\u7684\u4f7f\u7528\u573a\u666f\u4e5f\u57fa\u672c\u5c31\u6ca1\u4e86\u3002\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4463545\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : crclz <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f60\u53ef\u4ee5\u6bd4\u8f83\u4e00\u4e0b MongoDB \u548c PostgreSQL \u7684 jsonb \u7684\u533a\u522b\uff1a<\/p>\n<p>1. pg jsonb \u67e5\u8be2\u8bed\u8a00\u652f\u6301\u4e0d\u53cb\u597d\uff08\u4f8b\u5982\uff0cC# Linq List.Contains \u652f\u6301\u4e0d\u4e86\uff0c\u53c8\u4e0d\u62a5\u9519\uff09\u3002spring data \u90a3\u8fb9\u600e\u4e48\u6837\u4e0d\u4e86\u89e3\u3002<br \/>2. pg jsonb \u6ca1\u6709 map reduce\uff0c\u6240\u4ee5 jsonb \u4f60\u60f3\u8981 group by\uff0c\u5c31\u522b\u60f3\u4e86\uff0c\u8001\u8001\u5b9e\u5b9e\u7528\u5173\u7cfb\u6a21\u578b\u5427\u3002<br \/>3. mongo \u81ea\u5e26\u539f\u751f\u96c6\u7fa4\u548c\u5206\u7247\u652f\u6301<br \/>4. \u7d22\u5f15\u652f\u6301\uff1a\uff08\u8fd9\u70b9\u6211\u6ca1\u6709\u7ecf\u8fc7\u8003\u8bc1\uff0c\u5c5e\u4e8e\u534a\u778e\u626f\u7684\uff09\u6211\u4e2a\u4eba\u611f\u89c9 Mongo \u5929\u751f\u8981\u5e94\u5bf9\u590d\u6742\u7684\u6587\u6863\u7ed3\u6784\uff0c\u6240\u4ee5\u53ef\u80fd\u4f1a\u628a\u60c5\u51b5\u8003\u8651\u7684\u6bd4\u8f83\u5168<\/p>\n<p>\u7efc\u4e0a\uff0c\u4e13\u4e1a\u7684\u4e1c\u897f\u7ed9\u4e13\u4e1a\u7684\u505a\u3002<\/p>\n<p>\u5f53\u7136\uff0c\u8fd9\u51e0\u70b9\u4e5f\u6709\u89e3\u51b3\u65b9\u6848\uff1a<br \/>1 &#8212; jsonb \u67e5\u8be2\u8bed\u8a00\u652f\u6301\u4e0d\u53cb\u597d\uff1a\u5199\u539f\u751f\u7684\u5b57\u7b26\u4e32\u67e5\u8be2\u8bed\u53e5\u3002thoughtworks \u6709\u4e00\u4e2a\u5f00\u6e90\u7684\u6559\u7a0b\u9879\u76ee\u5c31\u662f\u8fd9\u6837\u505a\u7684\uff08\u7528\u7684\u662f mysql json \uff09<br \/>2 &#8212; pg jsonb \u6ca1\u6709 map reduce\uff1a\u56e0\u4e3a map reduce \u4e00\u822c\u662f\u7528\u6765\u641e\u7edf\u8ba1\u3001\u67e5\u8be2\u7684\uff0c\u6240\u4ee5\u53ef\u4ee5\u5229\u7528 CQRS \u7684\u601d\u60f3\uff0c\u628a\u90a3\u4e00\u90e8\u5206\u9700\u8981 map reduce \u624d\u80fd\u505a\u7edf\u8ba1\u7684\u805a\u5408\u7684\u67e5\u8be2\u6a21\u578b\u91c7\u7528\u5173\u7cfb\u6a21\u578b\u3002<br \/>4 &#8212; \u7d22\u5f15\u652f\u6301\uff1a\u5982\u679c\u67e5\u8be2\u9700\u6c42\u590d\u6742\uff0c\u5c31\u628a\u90a3\u4e00\u90e8\u5206\u590d\u6742\u7684\u91c7\u7528 CQRS \u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4463546\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : undeflife <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u867d\u7136\u4e0a\u8bf4\u7684\u5168\u9519 \u4f46\u662f pg \u652f\u6301 json \u8ddf \u62ff pg \u5f53 nosql \u8fd8\u662f\u4e24\u56de\u4e8b<\/p>\n<p>\u7b80\u5355\u6bd4\u8f83\u5176\u5b9e\u53ef\u4ee5\u53c2\u8003 lsm \u4e0e B tree \u7684\u5dee\u522b                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4463547\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : rekulas <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u60f3\u591a\u4e86\uff0cmysql \u7684 json \u652f\u6301\u57fa\u672c\u7b49\u540c\u9e21\u808b\uff0c\u5671\u5934\u800c\u5df2                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4463548\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : aguesuka <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u652f\u6301\u6709\u7a0b\u5ea6\u7684\u533a\u522b\u3002<br \/>mongo \u6709 unwined map reduce \u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u65e2\u7136 mysql \u5df2\u7ecf\u652f\u6301\u5b58\u50a8 j&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/221283"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=221283"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/221283\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=221283"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=221283"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=221283"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}