{"id":3248,"date":"2020-07-11T10:56:22","date_gmt":"2020-07-11T06:26:22","guid":{"rendered":"https:\/\/liangroup.net\/blog\/?p=3248"},"modified":"2020-07-11T11:24:29","modified_gmt":"2020-07-11T06:54:29","slug":"mongodb-database-design","status":"publish","type":"post","link":"https:\/\/liangroup.net\/blog\/mongodb-database-design\/","title":{"rendered":"\u0646\u06a9\u0627\u062a \u0637\u0631\u0627\u062d\u06cc \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u062f\u0631 MongoDB"},"content":{"rendered":"<p style=\"text-align: justify;\"><strong>\u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0645\u0648\u0646\u06af\u0648<\/strong> \u06cc\u06a9 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0645\u062d\u0628\u0648\u0628 \u0627\u0633\u062a \u06a9\u0647 \u0627\u062c\u0627\u0632\u0647 \u0645\u06cc\u200c\u062f\u0647\u062f \u0628\u062f\u0648\u0646 \u0627\u062c\u0628\u0627\u0631 \u0627\u0632 \u067e\u06cc\u0631\u0648\u06cc schema \u062e\u0627\u0635\u06cc\u060c \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u0630\u062e\u06cc\u0631\u0647 \u0634\u0648\u0646\u062f.<\/p>\n<p style=\"text-align: justify;\">\u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u062f\u0631 \u0642\u0627\u0644\u0628 JSON \u0630\u062e\u06cc\u0631\u0647 \u0645\u06cc\u200c\u0634\u0648\u0646\u062f \u0648 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u0646\u062f \u0634\u0627\u0645\u0644 \u0633\u0627\u062e\u062a\u0627\u0631\u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641\u06cc \u0628\u0627\u0634\u0646\u062f. \u0628\u0647\u200c\u0639\u0646\u0648\u0627\u0646 \u0645\u062b\u0627\u0644 \u062f\u0631 \u06cc\u06a9<strong> collection<\/strong> \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u0645 \u062f\u0648 <strong>document<\/strong> \u0632\u06cc\u0631 \u0631\u0627 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u0645:<\/p>\n<p style=\"text-align: justify;\"><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter size-full wp-image-3249\" src=\"https:\/\/liangroup.net\/blog\/wp-content\/uploads\/2020\/07\/1-1.png\" alt=\"mongodb\" width=\"715\" height=\"422\" srcset=\"https:\/\/liangroup.net\/blog\/wp-content\/uploads\/2020\/07\/1-1.png 715w, https:\/\/liangroup.net\/blog\/wp-content\/uploads\/2020\/07\/1-1-300x177.png 300w\" sizes=\"(max-width: 715px) 100vw, 715px\" \/><\/p>\n<p style=\"text-align: justify;\">\u0628\u0631\u0627\u06cc \u0628\u0647\u200c\u062f\u0633\u062a \u0622\u0648\u0631\u062f\u0646 \u0628\u0647\u062a\u0631\u06cc\u0646 \u0646\u062a\u06cc\u062c\u0647 \u0627\u0632 MongoDB\u060c \u0628\u0627\u06cc\u062f \u0627\u0635\u0648\u0644 \u0637\u0631\u0627\u062d\u06cc \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0631\u0627 \u0628\u062f\u0627\u0646\u06cc\u0645. \u0642\u0628\u0644 \u0627\u0632 \u0645\u0631\u0627\u062c\u0639\u0647 \u0628\u0647 \u0628\u0631\u062e\u06cc \u0646\u06a9\u0627\u062a \u0637\u0631\u0627\u062d\u06cc \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633\u060c \u0628\u0627\u06cc\u062f \u0628\u062f\u0627\u0646\u06cc\u0645 \u06a9\u0647 MongoDB \u0686\u06af\u0648\u0646\u0647 \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u0631\u0627 \u0630\u062e\u06cc\u0631\u0647 \u0645\u06cc\u200c\u06a9\u0646\u062f.<\/p>\n<h2 style=\"text-align: justify;\">\u0686\u06af\u0648\u0646\u0647 \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u062f\u0631 MongoDB \u0630\u062e\u06cc\u0631\u0647 \u0645\u06cc\u200c\u0634\u0648\u0646\u062f\u061f<\/h2>\n<p style=\"text-align: justify;\">\u0627\u06af\u0631 \u0627\u0632 \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633\u200c\u0647\u0627\u06cc RDBMS \u0646\u0638\u06cc\u0631 SQL Server\u060c PostgreSQL\u060c MySQL \u0628\u0647 \u0633\u0645\u062a MongoDB \u0622\u0645\u062f\u0647\u200c\u0627\u06cc\u062f \u0627\u062d\u062a\u0645\u0627\u0644\u0627\u064b \u0645\u0641\u0627\u0647\u06cc\u0645 \u0645\u062b\u0644 table \u0648 row \u0648 column \u0631\u0627 \u062f\u0631 \u0630\u0647\u0646 \u062f\u0627\u0631\u06cc\u062f. \u0627\u06cc\u0646 \u0645\u0641\u0627\u0647\u06cc\u0645 \u062f\u0631 MongoDB \u0648\u062c\u0648\u062f \u0646\u062f\u0627\u0631\u0646\u062f \u0648 \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u062f\u0631 collections \u0648 documents\u200c\u0647\u0627 \u0630\u062e\u06cc\u0631\u0647 \u0645\u06cc\u200c\u0634\u0648\u0646\u062f.<\/p>\n<p style=\"text-align: justify;\">\u062a\u0635\u0648\u06cc\u0631 \u0632\u06cc\u0631 \u0633\u0627\u062e\u062a\u0627\u0631 MongoDB \u0631\u0627 \u0628\u0627 RDBMS\u200c\u0647\u0627 \u0645\u0642\u0627\u06cc\u0633\u0647 \u0645\u06cc\u200c\u06a9\u0646\u062f.<\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-3250\" src=\"https:\/\/liangroup.net\/blog\/wp-content\/uploads\/2020\/07\/2-2.png\" alt=\"mongodb\" width=\"621\" height=\"404\" srcset=\"https:\/\/liangroup.net\/blog\/wp-content\/uploads\/2020\/07\/2-2.png 621w, https:\/\/liangroup.net\/blog\/wp-content\/uploads\/2020\/07\/2-2-300x195.png 300w\" sizes=\"(max-width: 621px) 100vw, 621px\" \/><\/p>\n<h3 style=\"text-align: justify;\">\u0646\u06a9\u0627\u062a \u0648 \u062a\u0631\u0641\u0646\u062f\u0647\u0627\u06cc \u0637\u0631\u0627\u062d\u06cc \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633<\/h3>\n<p style=\"text-align: justify;\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-3251\" src=\"https:\/\/liangroup.net\/blog\/wp-content\/uploads\/2020\/07\/3.jpeg\" alt=\"mongodb\" width=\"579\" height=\"270\" srcset=\"https:\/\/liangroup.net\/blog\/wp-content\/uploads\/2020\/07\/3.jpeg 579w, https:\/\/liangroup.net\/blog\/wp-content\/uploads\/2020\/07\/3-300x140.jpeg 300w\" sizes=\"(max-width: 579px) 100vw, 579px\" \/><\/p>\n<h3 style=\"text-align: justify;\">\u062a\u0641\u0627\u0648\u062a <a href=\"https:\/\/fa.wikipedia.org\/wiki\/%D9%86%D8%B1%D9%85%D8%A7%D9%84%E2%80%8C%D8%B3%D8%A7%D8%B2%DB%8C_(%D9%BE%D8%A7%DB%8C%DA%AF%D8%A7%D9%87_%D8%AF%D8%A7%D8%AF%D9%87%E2%80%8C%D9%87%D8%A7)\">Normalization<\/a> \u0628\u0627 <a href=\"https:\/\/en.wikipedia.org\/wiki\/Denormalization\">Denormalization<\/a>:<\/h3>\n<p style=\"text-align: justify;\">\u0628\u0627 \u062a\u0648\u062c\u0647 \u0628\u0647 \u0627\u06cc\u0646 \u06a9\u0647 MongoDB \u0628\u0627 document \u06a9\u0627\u0631 \u0645\u06cc\u200c\u06a9\u0646\u062f\u060c \u062f\u0631\u06a9 \u0645\u0641\u0627\u0647\u06cc\u0645 <strong>Normalization<\/strong> \u0648 <strong>Denormalization<\/strong> \u0628\u0633\u06cc\u0627\u0631 \u0645\u0647\u0645 \u0627\u0633\u062a. \u0627\u06cc\u0646 \u062f\u0648 \u0631\u0648\u0634 \u0646\u062d\u0648\u0647 \u0630\u062e\u06cc\u0631\u0647 \u062f\u0627\u062f\u0647\u200c\u0647\u0627\u06cc MongoDB \u0631\u0627 \u062a\u0639\u0631\u06cc\u0641 \u0645\u06cc\u200c\u06a9\u0646\u0646\u062f.<\/p>\n<p style=\"text-align: justify;\">\u062a\u0639\u0631\u06cc\u0641 <strong>Normalization<\/strong> &#8211; \u0628\u0647 \u0645\u0639\u0646\u0627\u06cc \u0630\u062e\u06cc\u0631\u0647 \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u062f\u0631 \u0686\u0646\u062f\u06cc\u0646 collection \u0628\u0627 \u0631\u0641\u0631\u0646\u0633\u200c\u062f\u0647\u06cc \u0628\u06cc\u0646 \u0622\u0646\u200c\u0647\u0627 \u0627\u0633\u062a. \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u06cc\u06a9 \u0628\u0627\u0631 \u062a\u0639\u0631\u06cc\u0641 \u0645\u06cc\u200c\u0634\u0648\u0646\u062f \u0648 \u0622\u067e\u062f\u06cc\u062a \u0631\u0627 \u0633\u0627\u062f\u0647\u200c\u062a\u0631 \u0645\u06cc\u200c\u06a9\u0646\u0646\u062f. \u0648\u0642\u062a\u06cc \u0635\u062d\u0628\u062a \u0627\u0632 \u062e\u0648\u0627\u0646\u062f\u0646 \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u0645\u06cc\u200c\u0634\u0648\u062f\u060c \u0646\u0642\u0637\u0647 \u0636\u0639\u0641 normalization \u0628\u0647 \u0686\u0634\u0645 \u0645\u06cc\u200c\u0622\u06cc\u062f. \u0627\u06af\u0631 \u0645\u06cc\u200c\u062e\u0648\u0627\u0647\u06cc\u062f \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u0631\u0627 \u0627\u0632 \u0686\u0646\u062f\u06cc\u0646 collection \u062f\u0631\u06cc\u0627\u0641\u062a \u06a9\u0646\u06cc\u062f\u060c \u0628\u0627\u06cc\u062f \u0686\u0646\u062f\u06cc\u0646 \u06a9\u0648\u0626\u0631\u06cc (Query) \u0628\u0632\u0646\u06cc\u062f. \u062f\u0631 \u0646\u062a\u06cc\u062c\u0647 \u0639\u0645\u0644\u06cc\u0627\u062a \u062e\u0648\u0627\u0646\u062f\u0646 \u06a9\u0646\u062f\u062a\u0631 \u0627\u0646\u062c\u0627\u0645 \u0645\u06cc\u200c\u06af\u06cc\u0631\u062f.<\/p>\n<p style=\"text-align: justify;\">\u062a\u0639\u0631\u06cc\u0641 <strong>Denormalization<\/strong> &#8211; \u062a\u0639\u062f\u0627\u062f \u0632\u06cc\u0627\u062f\u06cc \u062f\u0627\u062f\u0647 \u0631\u0627 \u062f\u0631 \u06cc\u06a9 document \u0628\u0647 \u0635\u0648\u0631\u062a \u062a\u0648 \u062f\u0631 \u062a\u0648 \u0630\u062e\u06cc\u0631\u0647 \u0645\u06cc\u200c\u06a9\u0646\u062f. \u0627\u06cc\u0646 \u0645\u062f\u0644 \u0639\u0645\u0644\u06cc\u0627\u062a \u062e\u0648\u0627\u0646\u062f\u0646 \u0639\u0645\u0644\u06a9\u0631\u062f \u0628\u0647\u062a\u0631\u06cc \u062e\u0648\u0627\u0647\u062f \u062f\u0627\u0634\u062a \u0627\u0645\u0627 \u062f\u0631 \u0627\u06cc\u0646\u0632\u0631\u062a (Insert) \u0648 \u0622\u067e\u062f\u06cc\u062a\u200c\u0647\u0627 \u06a9\u0646\u062f\u062a\u0631 \u062e\u0648\u0627\u0647\u062f \u0628\u0648\u062f. \u0627\u06cc\u0646 \u0631\u0648\u0634 \u0630\u062e\u06cc\u0631\u0647 \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u0641\u0636\u0627\u06cc \u0628\u06cc\u0634\u062a\u0631\u06cc \u0631\u0627 \u0628\u0631\u0627\u06cc \u0630\u062e\u06cc\u0631\u0647\u200c\u0633\u0627\u0632\u06cc \u0627\u0634\u063a\u0627\u0644 \u0645\u06cc\u200c\u06a9\u0646\u062f.<\/p>\n<p style=\"text-align: justify;\">\u0628\u0631\u0627\u06cc \u0627\u0646\u062a\u062e\u0627\u0628 \u06cc\u06a9\u06cc \u0627\u0632 \u0631\u0648\u0634\u200c\u0647\u0627 \u0628\u0627\u0644\u0627 \u0628\u0627\u06cc\u062f \u0628\u0647 \u0645\u0648\u0627\u0631\u062f \u0632\u06cc\u0631 \u062a\u0648\u062c\u0647 \u06a9\u0631\u062f.<\/p>\n<ul style=\"text-align: justify;\">\n<li>\u0627\u06af\u0631 \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633\u06cc \u062f\u0627\u0631\u06cc\u062f \u06a9\u0647 \u0646\u06cc\u0627\u0632\u06cc \u0628\u0647 \u0628\u0647\u200c\u0631\u0648\u0632\u0631\u0633\u0627\u0646\u06cc \u0645\u0646\u0638\u0645 \u0646\u062f\u0627\u0631\u062f\u060c \u062f\u0627\u0631\u0627\u06cc document\u200c\u0647\u0627\u06cc \u06a9\u0648\u0686\u06a9 \u0627\u0633\u062a \u06a9\u0647 \u0627\u0646\u062f\u0627\u0632\u0647 \u0622\u0646 \u0628\u0647 \u0622\u0647\u0633\u062a\u06af\u06cc \u0631\u0634\u062f \u0645\u06cc\u200c\u06a9\u0646\u062f\u060c \u0627\u062c\u0631\u0627\u06cc \u0633\u0631\u06cc\u0639 \u0628\u0631\u0648\u0632\u0631\u0633\u0627\u0646\u06cc \u0622\u0646\u0686\u0646\u0627\u0646 \u0645\u0647\u0645 \u0646\u06cc\u0633\u062a\u060c \u0627\u0645\u0627 \u0628\u0631\u0627\u06cc \u062e\u0648\u0627\u0646\u062f\u0646 \u0628\u0647 \u0639\u0645\u0644\u06a9\u0631\u062f \u062e\u0648\u0628\u06cc \u0646\u06cc\u0627\u0632 \u062f\u0627\u0631\u06cc\u062f\u060c \u067e\u0633 denormalization \u0645\u0645\u06a9\u0646 \u0627\u0633\u062a \u0627\u0646\u062a\u062e\u0627\u0628 \u062e\u0648\u0628\u06cc \u0628\u0627\u0634\u062f.<\/li>\n<li>\u0627\u06af\u0631 \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0634\u0645\u0627 \u062f\u0627\u0631\u0627\u06cc document\u200c\u0647\u0627\u06cc \u0628\u0632\u0631\u06af\u06cc \u0627\u0633\u062a \u06a9\u0647 \u062f\u0627\u0631\u0627\u06cc \u0628\u0647 \u0631\u0648\u0632\u0631\u0633\u0627\u0646\u06cc \u0645\u062f\u0627\u0648\u0645 \u0627\u0633\u062a \u0648 \u0645\u06cc\u200c\u062e\u0648\u0627\u0647\u06cc\u062f \u0639\u0645\u0644\u06a9\u0631\u062f \u062e\u0648\u0628\u06cc \u062f\u0631 \u0646\u0648\u0634\u062a\u0646 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f\u060c \u067e\u0633 normalization \u0645\u0645\u06a9\u0646 \u0627\u0633\u062a \u0627\u0646\u062a\u062e\u0627\u0628 \u062e\u0648\u0628\u06cc \u0628\u0627\u0634\u062f.<\/li>\n<\/ul>\n<h2 style=\"text-align: justify;\">\u0631\u0648\u0627\u0628\u0637 \u06cc\u06a9 \u0628\u0647 \u0686\u0646\u062f (One-to-N)<\/h2>\n<p style=\"text-align: justify;\">\u0645\u062f\u0644\u200c\u0633\u0627\u0632\u06cc \u0631\u0648\u0627\u0628\u0637 &#8220;\u06cc\u06a9 \u0628\u0647 \u0686\u0646\u062f&#8221; \u062f\u0631 MongoDB \u0646\u0633\u0628\u062a \u0628\u0647 RDBMS \u0638\u0631\u06cc\u0641\u200c\u062a\u0631 \u0627\u0633\u062a. \u06a9\u0633\u0627\u0646\u06cc \u06a9\u0647 \u062a\u0627\u0632\u0647 \u0628\u0647 \u0633\u0631\u0627\u063a MongoDB \u0622\u0645\u062f\u0647\u200c\u0627\u0646\u062f\u060c \u0628\u0647 \u0633\u0631\u0627\u063a \u0630\u062e\u06cc\u0631\u0647 \u0622\u0631\u0627\u06cc\u0647\u200c\u0627\u06cc \u0627\u0632 \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u062f\u0631 \u062c\u062f\u0648\u0644 Parent \u0645\u06cc\u200c\u0631\u0648\u0646\u062f \u0648 \u0627\u06cc\u0646 \u0647\u0645\u06cc\u0634\u0647 \u0628\u0647\u062a\u0631\u06cc\u0646 \u0631\u0627\u0647 \u062d\u0644 \u0646\u06cc\u0633\u062a. \u0647\u0645\u0627\u0646\u0637\u0648\u0631 \u06a9\u0647 \u062f\u0631 \u0627\u0648\u0644\u06cc\u0646 \u0646\u06a9\u062a\u0647 \u0645\u0634\u0627\u0647\u062f\u0647 \u06a9\u0631\u062f\u06cc\u0645\u060c \u062f\u0627\u0646\u0633\u062a\u0646 \u0632\u0645\u0627\u0646 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 normalization \u06cc\u0627 denormalization \u0628\u0633\u06cc\u0627\u0631 \u0645\u0647\u0645 \u0627\u0633\u062a. \u0628\u0646\u0627\u0628\u0631\u0627\u06cc\u0646 \u0642\u0628\u0644 \u0627\u0632 \u0647\u0631 \u0686\u06cc\u0632\u06cc \u0628\u0627\u06cc\u062f \u0628\u062f\u0627\u0646\u06cc\u0645 \u0645\u0646\u0638\u0648\u0631 \u0627\u0632 <strong>\u0686\u0646\u062f<\/strong> \u062f\u0631 \u0639\u0628\u0627\u0631\u062a &#8220;\u06cc\u06a9 \u0628\u0647 \u0686\u0646\u062f&#8221; \u062f\u0642\u06cc\u0642\u0627\u064b \u0686\u0647 \u0645\u06cc\u200c\u0628\u0627\u0634\u062f\u061f \u062a\u0639\u062f\u0627\u062f \u06a9\u0645\u060c \u0632\u06cc\u0627\u062f \u06cc\u0627 \u062e\u06cc\u0644\u06cc \u0632\u06cc\u0627\u062f\u061f \u0647\u0631 \u0631\u0627\u0628\u0637\u0647 \u06cc\u06a9 \u0631\u0648\u0634 \u0645\u062f\u0644\u200c\u0633\u0627\u0632\u06cc \u0645\u062a\u0641\u0627\u0648\u062a \u062e\u0648\u0627\u0647\u062f \u062f\u0627\u0634\u062a.<\/p>\n<p style=\"text-align: justify;\">\u0628\u0631\u0627\u06cc \u0645\u062b\u0627\u0644 \u0628\u0631\u0627\u06cc \u0630\u062e\u06cc\u0631\u0647\u200c\u0633\u0627\u0632\u06cc \u0631\u0627\u0628\u0637\u0647 &#8220;\u06cc\u06a9 \u0628\u0647 \u062a\u0639\u062f\u0627\u062f \u06a9\u0645\u06cc&#8221; \u0628\u0647\u062a\u0631\u06cc\u0646 \u0631\u0648\u0634 \u0630\u062e\u06cc\u0631\u0647 \u0628\u0647 \u0635\u0648\u0631\u062a \u062a\u0648 \u062f\u0631 \u062a\u0648 \u0627\u0633\u062a. \u0628\u0647 \u0641\u06cc\u0644\u062f addresses \u062f\u0631 document \u0632\u06cc\u0631 \u062a\u0648\u062c\u0647 \u06a9\u0646\u06cc\u062f.<\/p>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3252\" src=\"https:\/\/liangroup.net\/blog\/wp-content\/uploads\/2020\/07\/4-2.png\" alt=\"mongodb\" width=\"665\" height=\"240\" srcset=\"https:\/\/liangroup.net\/blog\/wp-content\/uploads\/2020\/07\/4-2.png 665w, https:\/\/liangroup.net\/blog\/wp-content\/uploads\/2020\/07\/4-2-300x108.png 300w\" sizes=\"(max-width: 665px) 100vw, 665px\" \/> <img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3253\" src=\"https:\/\/liangroup.net\/blog\/wp-content\/uploads\/2020\/07\/4-3.png\" alt=\"\" width=\"665\" height=\"240\" srcset=\"https:\/\/liangroup.net\/blog\/wp-content\/uploads\/2020\/07\/4-3.png 665w, https:\/\/liangroup.net\/blog\/wp-content\/uploads\/2020\/07\/4-3-300x108.png 300w\" sizes=\"(max-width: 665px) 100vw, 665px\" \/><\/p>\n<p style=\"text-align: justify;\">\u062f\u0631 \u0631\u0627\u0628\u0637\u0647 &#8220;\u06cc\u06a9 \u0628\u0647 \u0686\u0646\u062f&#8221; \u062f\u0648 collection \u0631\u0627 \u062f\u0631 \u0646\u0638\u0631 \u0645\u06cc\u200c\u06af\u06cc\u0631\u06cc\u0645.collection \u00a0\u0645\u062d\u0635\u0648\u0644\u0627\u062a \u0648 collection \u0642\u0637\u0639\u0627\u062a. \u0647\u0631 \u0645\u062d\u0635\u0648\u0644 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u201cObjectID\u201d \u0628\u0647 \u0642\u0637\u0639\u0627\u062a \u062e\u0648\u062f \u0627\u0634\u0627\u0631\u0647 \u0645\u06cc\u200c\u06a9\u0646\u062f.<\/p>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3254\" src=\"https:\/\/liangroup.net\/blog\/wp-content\/uploads\/2020\/07\/5-1.png\" alt=\"mongodb\" width=\"750\" height=\"453\" srcset=\"https:\/\/liangroup.net\/blog\/wp-content\/uploads\/2020\/07\/5-1.png 750w, https:\/\/liangroup.net\/blog\/wp-content\/uploads\/2020\/07\/5-1-300x181.png 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/p>\n<h2 style=\"text-align: justify;\">\u062f\u06cc\u06af\u0631 \u0646\u06a9\u0627\u062a \u062f\u0631 \u0637\u0631\u0627\u062d\u06cc \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633<\/h2>\n<h3 style=\"text-align: justify;\">\u0627\u06cc\u0646\u062f\u06a9\u0633 \u06af\u0630\u0627\u0631\u06cc<\/h3>\n<p style=\"text-align: justify;\">\u0628\u0631\u0627\u06cc \u062d\u0641\u0638 \u0639\u0645\u0644\u06a9\u0631\u062f \u062e\u0648\u0628 \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u062e\u0648\u062f\u060c \u0628\u0627\u06cc\u062f \u06cc\u06a9 \u0627\u06cc\u0646\u062f\u06a9\u0633 \u06af\u0630\u0627\u0631\u06cc \u062e\u0648\u0628 \u067e\u06cc\u0627\u062f\u0647 \u0633\u0627\u0632\u06cc \u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0639\u0645\u0644\u06a9\u0631\u062f \u0646\u0648\u0634\u062a\u0646 \u0648 \u062e\u0648\u0627\u0646\u062f\u0646 \u0634\u0645\u0627 \u0631\u0627 \u0633\u0631\u06cc\u0639\u200c\u062a\u0631 \u0645\u06cc\u200c\u06a9\u0646\u062f. \u062f\u0627\u0646\u0633\u062a\u0646 \u0645\u0632\u0627\u06cc\u0627 \u0648 \u0645\u062d\u062f\u0648\u062f\u06cc\u062a\u200c\u0647\u0627\u06cc \u0627\u06cc\u0646\u062f\u06a9\u0633 \u06af\u0630\u0627\u0631\u06cc \u0628\u0631\u0627\u06cc MongoDB \u062f\u0631 \u0627\u0646\u062c\u0627\u0645 \u0627\u06cc\u0646 \u06a9\u0627\u0631 \u0628\u0633\u06cc\u0627\u0631 \u0645\u0647\u0645 \u0627\u0633\u062a. \u0628\u0647 \u062e\u0627\u0637\u0631 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f \u06a9\u0647 MongoDB \u062f\u0631 \u0646\u06af\u0647\u062f\u0627\u0631\u06cc document\u200c\u0647\u0627 \u0628\u0631\u0627\u06cc \u06cc\u06a9 \u0645\u0631\u062a\u0628 \u0633\u0627\u0632\u06cc\u060c \u0645\u062d\u062f\u0648\u062f\u06cc\u062a \u06f3\u06f2MB \u062f\u0627\u0631\u062f. \u0627\u06af\u0631 \u0627\u0632 \u0627\u06cc\u0646\u062f\u06a9\u0633 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0646\u06a9\u0646\u06cc\u062f\u060c \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0645\u062c\u0628\u0648\u0631 \u0645\u06cc\u200c\u0634\u0648\u062f \u0636\u0645\u0646 \u0645\u0631\u062a\u0628 \u0633\u0627\u0632\u06cc\u060c \u0645\u0642\u062f\u0627\u0631 \u0632\u06cc\u0627\u062f\u06cc \u0627\u0632 document\u200c\u0647\u0627 \u0631\u0627 \u0646\u06af\u0647 \u062f\u0627\u0631\u062f. \u0627\u06af\u0631 MongoDB \u0628\u0647 \u0627\u06cc\u0646 \u0645\u062d\u062f\u0648\u062f\u06cc\u062a \u0628\u0631\u062e\u0648\u0631\u062f \u06a9\u0646\u062f\u060c \u0633\u067e\u0633 \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u062e\u0637\u0627 \u06cc\u0627 \u06cc\u06a9 \u0645\u062c\u0645\u0648\u0639\u0647 \u062e\u0627\u0644\u06cc \u0631\u0627 \u0628\u0631 \u0645\u06cc\u200c\u06af\u0631\u062f\u0627\u0646\u062f.<\/p>\n<h3 style=\"text-align: justify;\">\u0627\u062a\u0645\u06cc \u0628\u0648\u062f\u0646 (Atomicity)<\/h3>\n<p style=\"text-align: justify;\">\u0627\u062a\u0645\u06cc \u062f\u0631 \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0628\u0647 \u0627\u06cc\u0646 \u0645\u0639\u0646\u06cc \u0627\u0633\u062a \u06a9\u0647 \u06a9\u0644 \u0639\u0645\u0644\u06cc\u0627\u062a\u200c\u0647\u0627 \u0628\u0627\u06cc\u062f \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u06cc\u06a9 \u0639\u0645\u0644\u06cc\u0627\u062a \u0648\u0627\u062d\u062f \u0628\u0647\u200c\u0637\u0648\u0631\u06a9\u0644\u06cc \u0627\u0632 \u0628\u06cc\u0646 \u0628\u0631\u0648\u062f \u06cc\u0627 \u0645\u0648\u0641\u0642 \u0634\u0648\u062f. \u0627\u06af\u0631 \u062a\u0631\u0627\u06a9\u0646\u0634 \u0648\u0627\u0644\u062f\u06cc\u0646 \u062f\u0627\u0631\u0627\u06cc \u0628\u0633\u06cc\u0627\u0631\u06cc \u0627\u0632 \u0639\u0645\u0644\u06cc\u0627\u062a\u200c\u0647\u0627\u06cc \u0641\u0631\u0639\u06cc \u0628\u0627\u0634\u062f\u060c \u062d\u062a\u06cc \u0627\u06af\u0631 \u06cc\u06a9 \u0639\u0645\u0644\u06cc\u0627\u062a \u0646\u06cc\u0632 \u0627\u0646\u062c\u0627\u0645 \u0646\u0634\u0648\u062f \u06a9\u0644 \u0639\u0645\u0644\u06cc\u0627\u062a\u200c\u0647\u0627 \u0634\u06a9\u0633\u062a \u0645\u06cc\u200c\u062e\u0648\u0631\u0646\u062f. \u0639\u0645\u0644\u06cc\u0627\u062a\u200c\u0647\u0627 \u062f\u0631 MongoDB \u062f\u0631 \u0633\u0637\u062d document \u0627\u0646\u062c\u0627\u0645 \u0645\u06cc\u200c\u0634\u0648\u0646\u062f. \u0647\u06cc\u0686 \u0639\u0645\u0644\u06cc\u0627\u062a \u0646\u0648\u0634\u062a\u0646\u06cc \u0646\u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u062f \u0628\u06cc\u0634 \u0627\u0632 \u06cc\u06a9 document \u0631\u0627 \u062a\u062d\u062a \u062a\u0623\u062b\u06cc\u0631 \u0642\u0631\u0627\u0631 \u062f\u0647\u062f. \u0627\u06cc\u0646\u200c\u0647\u0627 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0639\u0645\u0644\u06cc\u0627\u062a \u062c\u062f\u0627\u06af\u0627\u0646\u0647\u200c\u0627\u06cc \u0631\u0641\u062a\u0627\u0631 \u0645\u06cc\u200c\u06a9\u0646\u0646\u062f. \u06cc\u06a9 \u0639\u0645\u0644\u06cc\u0627\u062a \u0646\u0648\u0634\u062a\u0646 \u062a\u0646\u0647\u0627 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u062f \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u0631\u0627 \u0628\u0631\u0627\u06cc \u06cc\u06a9 \u0645\u0648\u062c\u0648\u062f\u06cc\u062a \u0627\u06cc\u0646\u0632\u0631\u062a \u06cc\u0627 \u0622\u067e\u062f\u06cc\u062a \u06a9\u0646\u062f. \u0627\u0632 \u0627\u06cc\u0646 \u0631\u0648\u060c \u0627\u06cc\u0646 \u0639\u0645\u0644\u06cc\u0627\u062a \u0646\u0648\u0634\u062a\u0646 \u0627\u062a\u0645\u06cc \u0631\u0627 \u062a\u0633\u0647\u06cc\u0644 \u0645\u06cc\u200c\u06a9\u0646\u062f.<\/p>\n<p style=\"text-align: justify;\">\u0628\u0627 \u0627\u06cc\u0646 \u062d\u0627\u0644\u060c \u0633\u0627\u062e\u062a\u0627\u0631\u0647\u0627\u06cc\u06cc \u06a9\u0647 \u0627\u0631\u0627\u0626\u0647\u200c\u062f\u0647\u0646\u062f\u0647 \u0627\u062a\u0645\u06cc \u0628\u0648\u062f\u0646 \u062f\u0631 \u0639\u0645\u0644\u06cc\u0627\u062a \u0627\u06cc\u0646\u0632\u0631\u062a \u0647\u0633\u062a\u0646\u062f \u0645\u0645\u06a9\u0646 \u0627\u0633\u062a \u0628\u0631\u0646\u0627\u0645\u0647 \u0631\u0627 \u0628\u0631\u0627\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u0645\u062d\u062f\u0648\u062f \u06a9\u0646\u0646\u062f. \u0647\u0645\u0686\u0646\u06cc\u0646 \u0645\u0645\u06a9\u0646 \u0627\u0633\u062a \u0631\u0648\u0634\u200c\u0647\u0627\u06cc \u062a\u063a\u06cc\u06cc\u0631 \u0628\u0631\u0646\u0627\u0645\u0647 \u0645\u062d\u062f\u0648\u062f \u0634\u0648\u062f. \u0628\u0631\u0627\u06cc \u0637\u0631\u0627\u062d\u06cc \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633\u06cc \u0627\u0646\u0639\u0637\u0627\u0641 \u067e\u0630\u06cc\u0631 \u0628\u0627\u06cc\u062f \u0628\u0647 \u0646\u06a9\u062a\u0647 \u0627\u062a\u0645\u06cc \u0628\u0648\u062f\u0646 \u0646\u06cc\u0632 \u062f\u0642\u062a \u0634\u0648\u062f.<\/p>\n<h3 style=\"text-align: justify;\">\u0627\u06cc\u062c\u0627\u062f collection \u0628\u0627 document\u200c \u0647\u0627\u06cc \u0628\u0632\u0631\u06af<\/h3>\n<p style=\"text-align: justify;\">\u0645\u0648\u0646\u06af\u0648 \u0627\u062c\u0627\u0632\u0647 \u0645\u06cc\u200c\u062f\u0647\u062f \u06a9\u0647 document\u200c\u0647\u0627\u06cc \u0628\u0632\u0631\u06af \u062a\u0627 \u06f1\u06f6 \u0645\u06af\u0627\u0628\u0627\u06cc\u062a \u062f\u0631 collection \u0642\u0631\u0627\u0631 \u06af\u06cc\u0631\u0646\u062f. \u0627\u0645\u0627 \u067e\u0634\u062a\u06cc\u0628\u0627\u0646\u06cc \u0627\u0632 document\u200c\u0647\u0627\u06cc \u0628\u0632\u0631\u06af \u0628\u0647 \u0627\u06cc\u0646 \u0645\u0639\u0646\u06cc \u0646\u06cc\u0633\u062a \u06a9\u0647 \u0630\u062e\u06cc\u0631\u0647 \u0627\u06cc\u0646 \u062d\u062c\u0645 \u0627\u0632 \u062f\u0627\u062f\u0647 \u062f\u0627\u062e\u0644 \u06cc\u06a9 document \u0627\u06cc\u062f\u0647 \u062e\u0648\u0628\u06cc \u0627\u0633\u062a. \u0627\u06af\u0631 document \u062c\u062f\u0627\u06af\u0627\u0646\u0647\u200c\u0627\u06cc \u0628\u0647 \u0627\u0646\u062f\u0627\u0632\u0647 \u0686\u0646\u062f \u06a9\u06cc\u0644\u0648\u0628\u0627\u06cc\u062a \u0646\u06af\u0647 \u062f\u0627\u0631\u06cc\u062f\u060c MongoDB \u0628\u0647 \u0628\u0647\u062a\u0631\u06cc\u0646 \u0648\u062c\u0647 \u06a9\u0627\u0631 \u0645\u06cc\u200c\u06a9\u0646\u062f. document \u0628\u0632\u0631\u06af \u0628\u0627\u0639\u062b \u0627\u06cc\u062c\u0627\u062f \u0686\u0646\u062f\u06cc\u0646 \u0645\u0634\u06a9\u0644 \u062f\u0631 \u0639\u0645\u0644\u06a9\u0631\u062f \u062e\u0648\u0627\u0647\u062f \u0634\u062f.<\/p>\n<p style=\"text-align: justify;\">\u0628\u0631\u0627\u06cc \u062f\u0631\u06a9 \u0628\u0647\u062a\u0631\u06cc \u0627\u0632 \u06f1\u06f6 \u0645\u06af\u0627\u0628\u0627\u06cc\u062a\u060c \u0627\u06cc\u0646 \u06a9\u062a\u0627\u0628 <a href=\"http:\/\/www.gutenberg.org\/files\/36\/36-0.txt\">\u062c\u0646\u06af \u062c\u0647\u0627\u0646\u06cc<\/a> \u062a\u0646\u0647\u0627 \u06f3\u06f6\u06f0 \u06a9\u06cc\u0644\u0648\u0628\u0627\u06cc\u062a \u062d\u062c\u0645 \u062f\u0627\u0631\u062f.<\/p>\n<h2 style=\"text-align: justify;\">\u0646\u062a\u06cc\u062c\u0647 \u06af\u06cc\u0631\u06cc<\/h2>\n<p style=\"text-align: justify;\">\u0628\u0631\u0627\u06cc \u062f\u0631\u06a9 \u06a9\u0627\u0645\u0644 \u0627\u0632 MongoDB \u0647\u0645\u0631\u0627\u0647 \u0628\u0627 \u062f\u0627\u0634\u062a\u0646 \u062f\u06cc\u062f \u06a9\u0627\u0645\u0644 \u0627\u0632 \u0622\u0646\u0686\u0647 \u0645\u06cc\u200c\u062e\u0648\u0627\u0647\u06cc\u062f \u0628\u0627 MongoDB \u067e\u06cc\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f\u060c \u0627\u06cc\u0646 \u062f\u0648 \u06a9\u0645\u06a9 \u0628\u0633\u06cc\u0627\u0631 \u0632\u06cc\u0627\u062f\u06cc \u062f\u0631 \u0637\u0631\u0627\u062d\u06cc \u0645\u0646\u0627\u0633\u0628 \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0645\u06cc\u200c\u06a9\u0646\u0646\u062f.<\/p>\n<blockquote>\n<p style=\"text-align: justify;\"><span style=\"font-size: 12pt;\"><strong>\u0646\u0648\u06cc\u0633\u0646\u062f\u0647: \u0639\u0644\u06cc \u0642\u0627\u06cc\u06cc\u0646\u06cc<\/strong><\/span><\/p>\n<\/blockquote>\n<p>&nbsp;<\/p>\n<p>\u0645\u0646\u0627\u0628\u0639:<\/p>\n<p><a href=\"https:\/\/dzone.com\/articles\/mongodb-design-tips-amp-tricks\">MongoDB Design: Tips AND Tricks<\/a><\/p>\n<p><a href=\"https:\/\/medium.com\/@rinu.gour123\/mongodb-data-modeling-with-document-structure-a6e69de8e37f\">MongoDB Data Modeling with Document Structure<\/a><\/p>\n<p><a href=\"https:\/\/www.infoq.com\/articles\/Starting-With-MongoDB\/\">\u06f1\u06f4 Things I Wish I\u2019d Known When Starting with MongoDB<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0645\u0648\u0646\u06af\u0648 \u06cc\u06a9 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0645\u062d\u0628\u0648\u0628 \u0627\u0633\u062a \u06a9\u0647 \u0627\u062c\u0627\u0632\u0647 \u0645\u06cc\u200c\u062f\u0647\u062f \u0628\u062f\u0648\u0646 \u0627\u062c\u0628\u0627\u0631 \u0627\u0632 \u067e\u06cc\u0631\u0648\u06cc schema \u062e\u0627\u0635\u06cc\u060c \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u0630\u062e\u06cc\u0631\u0647 \u0634\u0648\u0646\u062f. \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u062f\u0631 \u0642\u0627\u0644\u0628 JSON \u0630\u062e\u06cc\u0631\u0647 \u0645\u06cc\u200c\u0634\u0648\u0646\u062f \u0648 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u0646\u062f \u0634\u0627\u0645\u0644 \u0633\u0627\u062e\u062a\u0627\u0631\u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641\u06cc \u0628\u0627\u0634\u0646\u062f. \u0628\u0647\u200c\u0639\u0646\u0648\u0627\u0646 \u0645\u062b\u0627\u0644 \u062f\u0631 \u06cc\u06a9 collection \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u0645 \u062f\u0648 document \u0632\u06cc\u0631 \u0631\u0627 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u0645: \u0628\u0631\u0627\u06cc \u0628\u0647\u200c\u062f\u0633\u062a \u0622\u0648\u0631\u062f\u0646 \u0628\u0647\u062a\u0631\u06cc\u0646 \u0646\u062a\u06cc\u062c\u0647 \u0627\u0632 MongoDB\u060c \u0628\u0627\u06cc\u062f \u0627\u0635\u0648\u0644 \u0637\u0631\u0627\u062d\u06cc \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0631\u0627 &hellip;<\/p>\n","protected":false},"author":1,"featured_media":3255,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[242,246],"tags":[],"class_list":["post-3248","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-programming","category-database-programming"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.5 (Yoast SEO v27.6) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>\u0646\u06a9\u0627\u062a \u0637\u0631\u0627\u062d\u06cc \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u062f\u0631 MongoDB - \u0628\u0644\u0627\u06af \u06af\u0631\u0648\u0647 \u0644\u06cc\u0627\u0646<\/title>\n<meta name=\"description\" content=\"\u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0645\u0648\u0646\u06af\u0648 \u06cc\u06a9 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0645\u062d\u0628\u0648\u0628 \u0627\u0633\u062a \u06a9\u0647 \u0627\u062c\u0627\u0632\u0647 \u0645\u06cc\u200c\u062f\u0647\u062f \u0628\u062f\u0648\u0646 \u0627\u062c\u0628\u0627\u0631 \u0627\u0632 \u067e\u06cc\u0631\u0648\u06cc schema \u062e\u0627\u0635\u06cc\u060c \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u0630\u062e\u06cc\u0631\u0647 \u0634\u0648\u0646\u062f.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/liangroup.net\/blog\/mongodb-database-design\/\" \/>\n<meta property=\"og:locale\" content=\"fa_IR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u0646\u06a9\u0627\u062a \u0637\u0631\u0627\u062d\u06cc \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u062f\u0631 MongoDB\" \/>\n<meta property=\"og:description\" content=\"\u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0645\u0648\u0646\u06af\u0648 \u06cc\u06a9 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0645\u062d\u0628\u0648\u0628 \u0627\u0633\u062a \u06a9\u0647 \u0627\u062c\u0627\u0632\u0647 \u0645\u06cc\u200c\u062f\u0647\u062f \u0628\u062f\u0648\u0646 \u0627\u062c\u0628\u0627\u0631 \u0627\u0632 \u067e\u06cc\u0631\u0648\u06cc schema \u062e\u0627\u0635\u06cc\u060c \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u0630\u062e\u06cc\u0631\u0647 \u0634\u0648\u0646\u062f.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/liangroup.net\/blog\/mongodb-database-design\/\" \/>\n<meta property=\"og:site_name\" content=\"\u0628\u0644\u0627\u06af \u06af\u0631\u0648\u0647 \u0644\u06cc\u0627\u0646\" \/>\n<meta property=\"article:author\" content=\"#\" \/>\n<meta property=\"article:published_time\" content=\"2020-07-11T06:26:22+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-07-11T06:54:29+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/liangroup.net\/blog\/wp-content\/uploads\/2020\/07\/\u0639\u06a9\u0633-\u0648\u06cc\u0631\u06af\u0648\u0644.jpeg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"\u0627\u062f\u0645\u06cc\u0646\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@#\" \/>\n<meta name=\"twitter:site\" content=\"@liansecurity\" \/>\n<meta name=\"twitter:label1\" content=\"\u0646\u0648\u0634\u062a\u0647\u200c\u0634\u062f\u0647 \u0628\u062f\u0633\u062a\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u0627\u062f\u0645\u06cc\u0646\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/liangroup.net\\\/blog\\\/mongodb-database-design\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/liangroup.net\\\/blog\\\/mongodb-database-design\\\/\"},\"author\":{\"name\":\"\u0627\u062f\u0645\u06cc\u0646\",\"@id\":\"https:\\\/\\\/liangroup.net\\\/blog\\\/#\\\/schema\\\/person\\\/56ec88338ff7cb5202779a216d9f3399\"},\"headline\":\"\u0646\u06a9\u0627\u062a \u0637\u0631\u0627\u062d\u06cc \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u062f\u0631 MongoDB\",\"datePublished\":\"2020-07-11T06:26:22+00:00\",\"dateModified\":\"2020-07-11T06:54:29+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/liangroup.net\\\/blog\\\/mongodb-database-design\\\/\"},\"wordCount\":99,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/liangroup.net\\\/blog\\\/mongodb-database-design\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/liangroup.net\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/07\\\/\u0639\u06a9\u0633-\u0648\u06cc\u0631\u06af\u0648\u0644.jpeg\",\"articleSection\":[\"\u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc\",\"\u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633\"],\"inLanguage\":\"fa-IR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/liangroup.net\\\/blog\\\/mongodb-database-design\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/liangroup.net\\\/blog\\\/mongodb-database-design\\\/\",\"url\":\"https:\\\/\\\/liangroup.net\\\/blog\\\/mongodb-database-design\\\/\",\"name\":\"\u0646\u06a9\u0627\u062a \u0637\u0631\u0627\u062d\u06cc \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u062f\u0631 MongoDB - \u0628\u0644\u0627\u06af \u06af\u0631\u0648\u0647 \u0644\u06cc\u0627\u0646\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/liangroup.net\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/liangroup.net\\\/blog\\\/mongodb-database-design\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/liangroup.net\\\/blog\\\/mongodb-database-design\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/liangroup.net\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/07\\\/\u0639\u06a9\u0633-\u0648\u06cc\u0631\u06af\u0648\u0644.jpeg\",\"datePublished\":\"2020-07-11T06:26:22+00:00\",\"dateModified\":\"2020-07-11T06:54:29+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/liangroup.net\\\/blog\\\/#\\\/schema\\\/person\\\/56ec88338ff7cb5202779a216d9f3399\"},\"description\":\"\u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0645\u0648\u0646\u06af\u0648 \u06cc\u06a9 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0645\u062d\u0628\u0648\u0628 \u0627\u0633\u062a \u06a9\u0647 \u0627\u062c\u0627\u0632\u0647 \u0645\u06cc\u200c\u062f\u0647\u062f \u0628\u062f\u0648\u0646 \u0627\u062c\u0628\u0627\u0631 \u0627\u0632 \u067e\u06cc\u0631\u0648\u06cc schema \u062e\u0627\u0635\u06cc\u060c \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u0630\u062e\u06cc\u0631\u0647 \u0634\u0648\u0646\u062f.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/liangroup.net\\\/blog\\\/mongodb-database-design\\\/#breadcrumb\"},\"inLanguage\":\"fa-IR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/liangroup.net\\\/blog\\\/mongodb-database-design\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"fa-IR\",\"@id\":\"https:\\\/\\\/liangroup.net\\\/blog\\\/mongodb-database-design\\\/#primaryimage\",\"url\":\"https:\\\/\\\/liangroup.net\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/07\\\/\u0639\u06a9\u0633-\u0648\u06cc\u0631\u06af\u0648\u0644.jpeg\",\"contentUrl\":\"https:\\\/\\\/liangroup.net\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/07\\\/\u0639\u06a9\u0633-\u0648\u06cc\u0631\u06af\u0648\u0644.jpeg\",\"width\":1200,\"height\":628,\"caption\":\"mongodb\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/liangroup.net\\\/blog\\\/mongodb-database-design\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u062e\u0627\u0646\u0647\",\"item\":\"https:\\\/\\\/liangroup.net\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u0646\u06a9\u0627\u062a \u0637\u0631\u0627\u062d\u06cc \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u062f\u0631 MongoDB\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/liangroup.net\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/liangroup.net\\\/blog\\\/\",\"name\":\"\u0628\u0644\u0627\u06af \u06af\u0631\u0648\u0647 \u0644\u06cc\u0627\u0646\",\"description\":\"\u0622\u062e\u0631\u06cc\u0646 \u0627\u062e\u0628\u0627\u0631\u060c\u0645\u0642\u0627\u0644\u0627\u062a \u0648 \u0622\u0645\u0648\u0632\u0634\u200c\u0647\u0627\u06cc \u062d\u0648\u0632\u0647 \u0627\u0645\u0646\u06cc\u062a \u0633\u0627\u06cc\u0628\u0631\u06cc\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/liangroup.net\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fa-IR\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/liangroup.net\\\/blog\\\/#\\\/schema\\\/person\\\/56ec88338ff7cb5202779a216d9f3399\",\"name\":\"\u0627\u062f\u0645\u06cc\u0646\",\"description\":\"\u0639\u0644\u0627\u0642\u0645\u0646\u062f \u0628\u0647 \u062d\u0648\u0632\u0647 \u0627\u0645\u0646\u06cc\u062a \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0648 \u0622\u0634\u0646\u0627 \u0628\u0647 \u062d\u0648\u0632\u0647 \u062a\u0633\u062a \u0646\u0641\u0648\u0630\",\"sameAs\":[\"http:\\\/\\\/liangroup.net\",\"#\",\"https:\\\/\\\/x.com\\\/#\"],\"url\":\"https:\\\/\\\/liangroup.net\\\/blog\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u0646\u06a9\u0627\u062a \u0637\u0631\u0627\u062d\u06cc \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u062f\u0631 MongoDB - \u0628\u0644\u0627\u06af \u06af\u0631\u0648\u0647 \u0644\u06cc\u0627\u0646","description":"\u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0645\u0648\u0646\u06af\u0648 \u06cc\u06a9 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0645\u062d\u0628\u0648\u0628 \u0627\u0633\u062a \u06a9\u0647 \u0627\u062c\u0627\u0632\u0647 \u0645\u06cc\u200c\u062f\u0647\u062f \u0628\u062f\u0648\u0646 \u0627\u062c\u0628\u0627\u0631 \u0627\u0632 \u067e\u06cc\u0631\u0648\u06cc schema \u062e\u0627\u0635\u06cc\u060c \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u0630\u062e\u06cc\u0631\u0647 \u0634\u0648\u0646\u062f.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/liangroup.net\/blog\/mongodb-database-design\/","og_locale":"fa_IR","og_type":"article","og_title":"\u0646\u06a9\u0627\u062a \u0637\u0631\u0627\u062d\u06cc \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u062f\u0631 MongoDB","og_description":"\u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0645\u0648\u0646\u06af\u0648 \u06cc\u06a9 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0645\u062d\u0628\u0648\u0628 \u0627\u0633\u062a \u06a9\u0647 \u0627\u062c\u0627\u0632\u0647 \u0645\u06cc\u200c\u062f\u0647\u062f \u0628\u062f\u0648\u0646 \u0627\u062c\u0628\u0627\u0631 \u0627\u0632 \u067e\u06cc\u0631\u0648\u06cc schema \u062e\u0627\u0635\u06cc\u060c \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u0630\u062e\u06cc\u0631\u0647 \u0634\u0648\u0646\u062f.","og_url":"https:\/\/liangroup.net\/blog\/mongodb-database-design\/","og_site_name":"\u0628\u0644\u0627\u06af \u06af\u0631\u0648\u0647 \u0644\u06cc\u0627\u0646","article_author":"#","article_published_time":"2020-07-11T06:26:22+00:00","article_modified_time":"2020-07-11T06:54:29+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/liangroup.net\/blog\/wp-content\/uploads\/2020\/07\/\u0639\u06a9\u0633-\u0648\u06cc\u0631\u06af\u0648\u0644.jpeg","type":"image\/jpeg"}],"author":"\u0627\u062f\u0645\u06cc\u0646","twitter_card":"summary_large_image","twitter_creator":"@#","twitter_site":"@liansecurity","twitter_misc":{"\u0646\u0648\u0634\u062a\u0647\u200c\u0634\u062f\u0647 \u0628\u062f\u0633\u062a":"\u0627\u062f\u0645\u06cc\u0646"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/liangroup.net\/blog\/mongodb-database-design\/#article","isPartOf":{"@id":"https:\/\/liangroup.net\/blog\/mongodb-database-design\/"},"author":{"name":"\u0627\u062f\u0645\u06cc\u0646","@id":"https:\/\/liangroup.net\/blog\/#\/schema\/person\/56ec88338ff7cb5202779a216d9f3399"},"headline":"\u0646\u06a9\u0627\u062a \u0637\u0631\u0627\u062d\u06cc \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u062f\u0631 MongoDB","datePublished":"2020-07-11T06:26:22+00:00","dateModified":"2020-07-11T06:54:29+00:00","mainEntityOfPage":{"@id":"https:\/\/liangroup.net\/blog\/mongodb-database-design\/"},"wordCount":99,"commentCount":0,"image":{"@id":"https:\/\/liangroup.net\/blog\/mongodb-database-design\/#primaryimage"},"thumbnailUrl":"https:\/\/liangroup.net\/blog\/wp-content\/uploads\/2020\/07\/\u0639\u06a9\u0633-\u0648\u06cc\u0631\u06af\u0648\u0644.jpeg","articleSection":["\u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc","\u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633"],"inLanguage":"fa-IR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/liangroup.net\/blog\/mongodb-database-design\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/liangroup.net\/blog\/mongodb-database-design\/","url":"https:\/\/liangroup.net\/blog\/mongodb-database-design\/","name":"\u0646\u06a9\u0627\u062a \u0637\u0631\u0627\u062d\u06cc \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u062f\u0631 MongoDB - \u0628\u0644\u0627\u06af \u06af\u0631\u0648\u0647 \u0644\u06cc\u0627\u0646","isPartOf":{"@id":"https:\/\/liangroup.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/liangroup.net\/blog\/mongodb-database-design\/#primaryimage"},"image":{"@id":"https:\/\/liangroup.net\/blog\/mongodb-database-design\/#primaryimage"},"thumbnailUrl":"https:\/\/liangroup.net\/blog\/wp-content\/uploads\/2020\/07\/\u0639\u06a9\u0633-\u0648\u06cc\u0631\u06af\u0648\u0644.jpeg","datePublished":"2020-07-11T06:26:22+00:00","dateModified":"2020-07-11T06:54:29+00:00","author":{"@id":"https:\/\/liangroup.net\/blog\/#\/schema\/person\/56ec88338ff7cb5202779a216d9f3399"},"description":"\u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0645\u0648\u0646\u06af\u0648 \u06cc\u06a9 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0645\u062d\u0628\u0648\u0628 \u0627\u0633\u062a \u06a9\u0647 \u0627\u062c\u0627\u0632\u0647 \u0645\u06cc\u200c\u062f\u0647\u062f \u0628\u062f\u0648\u0646 \u0627\u062c\u0628\u0627\u0631 \u0627\u0632 \u067e\u06cc\u0631\u0648\u06cc schema \u062e\u0627\u0635\u06cc\u060c \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u0630\u062e\u06cc\u0631\u0647 \u0634\u0648\u0646\u062f.","breadcrumb":{"@id":"https:\/\/liangroup.net\/blog\/mongodb-database-design\/#breadcrumb"},"inLanguage":"fa-IR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/liangroup.net\/blog\/mongodb-database-design\/"]}]},{"@type":"ImageObject","inLanguage":"fa-IR","@id":"https:\/\/liangroup.net\/blog\/mongodb-database-design\/#primaryimage","url":"https:\/\/liangroup.net\/blog\/wp-content\/uploads\/2020\/07\/\u0639\u06a9\u0633-\u0648\u06cc\u0631\u06af\u0648\u0644.jpeg","contentUrl":"https:\/\/liangroup.net\/blog\/wp-content\/uploads\/2020\/07\/\u0639\u06a9\u0633-\u0648\u06cc\u0631\u06af\u0648\u0644.jpeg","width":1200,"height":628,"caption":"mongodb"},{"@type":"BreadcrumbList","@id":"https:\/\/liangroup.net\/blog\/mongodb-database-design\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u062e\u0627\u0646\u0647","item":"https:\/\/liangroup.net\/blog\/"},{"@type":"ListItem","position":2,"name":"\u0646\u06a9\u0627\u062a \u0637\u0631\u0627\u062d\u06cc \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u062f\u0631 MongoDB"}]},{"@type":"WebSite","@id":"https:\/\/liangroup.net\/blog\/#website","url":"https:\/\/liangroup.net\/blog\/","name":"\u0628\u0644\u0627\u06af \u06af\u0631\u0648\u0647 \u0644\u06cc\u0627\u0646","description":"\u0622\u062e\u0631\u06cc\u0646 \u0627\u062e\u0628\u0627\u0631\u060c\u0645\u0642\u0627\u0644\u0627\u062a \u0648 \u0622\u0645\u0648\u0632\u0634\u200c\u0647\u0627\u06cc \u062d\u0648\u0632\u0647 \u0627\u0645\u0646\u06cc\u062a \u0633\u0627\u06cc\u0628\u0631\u06cc","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/liangroup.net\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fa-IR"},{"@type":"Person","@id":"https:\/\/liangroup.net\/blog\/#\/schema\/person\/56ec88338ff7cb5202779a216d9f3399","name":"\u0627\u062f\u0645\u06cc\u0646","description":"\u0639\u0644\u0627\u0642\u0645\u0646\u062f \u0628\u0647 \u062d\u0648\u0632\u0647 \u0627\u0645\u0646\u06cc\u062a \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0648 \u0622\u0634\u0646\u0627 \u0628\u0647 \u062d\u0648\u0632\u0647 \u062a\u0633\u062a \u0646\u0641\u0648\u0630","sameAs":["http:\/\/liangroup.net","#","https:\/\/x.com\/#"],"url":"https:\/\/liangroup.net\/blog\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/liangroup.net\/blog\/wp-json\/wp\/v2\/posts\/3248","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/liangroup.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/liangroup.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/liangroup.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/liangroup.net\/blog\/wp-json\/wp\/v2\/comments?post=3248"}],"version-history":[{"count":0,"href":"https:\/\/liangroup.net\/blog\/wp-json\/wp\/v2\/posts\/3248\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/liangroup.net\/blog\/wp-json\/wp\/v2\/media\/3255"}],"wp:attachment":[{"href":"https:\/\/liangroup.net\/blog\/wp-json\/wp\/v2\/media?parent=3248"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/liangroup.net\/blog\/wp-json\/wp\/v2\/categories?post=3248"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/liangroup.net\/blog\/wp-json\/wp\/v2\/tags?post=3248"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}