{"id":26652,"date":"2013-01-25T21:03:37","date_gmt":"2013-01-25T13:03:37","guid":{"rendered":"http:\/\/www.yankay.com\/?p=26652"},"modified":"2021-03-28T20:06:56","modified_gmt":"2021-03-28T12:06:56","slug":"nosql-anti-pattern-document","status":"publish","type":"post","link":"http:\/\/yankay.com\/nosql-anti-pattern-document\/","title":{"rendered":"NoSQL\u53cd\u6a21\u5f0f – \u6587\u6863\u6570\u636e\u5e93\u7bc7"},"content":{"rendered":"

\u6211\u4eec\u8bbe\u8ba1\u5173\u7cfb\u6570\u636e\u5e93Schema\u7684\u90fd\u6709\u4e00\u5957\u5b8c\u6574\u7684\u65b9\u6848\uff0c\u800cNoSQL\u5374\u6ca1\u6709\u8fd9\u4e9b\u3002\u534a\u5e74\u524d\u7b14\u8005\u8bfb\u4e86\u672c\u300aSQL\u53cd\u6a21\u5f0f\u300b\u7684\u4e66\uff0c\u89c9\u5f97\u975e\u5e38\u597d\u3002\u5c31\u5f00\u59cb\u7559\u610f\uff0c\u5bf9\u4e8eNoSQL\u662f\u5426\u4e5f\u6709\u53cd\u6a21\u5f0f\uff1f\u597d\u7684\u53cd\u6a21\u5f0f\u53ef\u4ee5\u5728\u6211\u4eec\u8bbe\u8ba1Schema\u544a\u8bc9\u54ea\u91cc\u662f\u9677\u9631\u548c\u60ac\u5d16\u3002NoSQL\u5ba3\u4f20\u7684\u65f6\u5019\u5f80\u5f80\u5ba3\u79f0\u662fSchemaLess\u7684\uff0c\u8fd9\u4f1a\u8ba9\u4eba\u8bef\u89e3\u5176\u4e0d\u9700\u8981\u8bbe\u8ba1Schema\u3002\u4f46\u5982\u679c\u4e0d\u610f\u8bc6\u5230\u8bbe\u8ba1Schema\u7684\u5fc5\u8981\uff0c\u9677\u9631\u5c31\u5728\u4e00\u76f4\u5728\u9ed1\u6697\u4e2d\u7b49\u7740\u6211\u4eec\u3002\u8fd9\u7bc7\u6587\u7ae0\u5c31\u603b\u7ed3\u4e00\u4e9b\u522b\u4eba\u7684\uff0c\u4e5f\u6709\u81ea\u5df1\u72af\u8fc7\u7684\u6df1\u75db\u7684\u8bbe\u8ba1Schema\u9519\u8bef\u3002<\/p>\n

NoSQL\u6570\u636e\u5e93\u6700\u4e3b\u6d41\u7684\u6709\u6587\u6863\u6570\u636e\u5e93\uff0c\u5217\u5b58\u6570\u636e\u5e93\uff0c\u952e\u503c\u6570\u636e\u5e93\u3002\u4e09\u8005\u5206\u522b\u6709\u4ee3\u8868\u4f5cMongoDB\uff0cHBase\u548cRedis\u3002\u5982\u679c\u5c06NoSQL\u6bd4\u4f5c\u5175\u5668\u7684\u8bdd\uff0c\u53ef\u4ee5\u8fd9\u6837(MySQL\u662f\u5178\u578b\u7684\u5173\u7cfb\u578b\u6570\u636e\u5e93\uff0c\u4e00\u6837\u53c2\u4e0e\u6bd4\u8f83)\uff1a<\/p>\n