{"id":874,"date":"2025-05-21T08:58:41","date_gmt":"2025-05-21T08:58:41","guid":{"rendered":"https:\/\/glebdranitson24.thkit.ee\/wp\/?page_id=874"},"modified":"2025-05-21T11:20:02","modified_gmt":"2025-05-21T11:20:02","slug":"mongo","status":"publish","type":"page","link":"https:\/\/glebdranitson24.thkit.ee\/wp\/?page_id=874","title":{"rendered":"Mongo \/ noSQL andmebaas"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"282\" src=\"https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/05\/mongodb_standard-1024x282.png\" alt=\"\" class=\"wp-image-875\" srcset=\"https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/05\/mongodb_standard-1024x282.png 1024w, https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/05\/mongodb_standard-300x83.png 300w, https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/05\/mongodb_standard-768x212.png 768w, https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/05\/mongodb_standard-150x41.png 150w, https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/05\/mongodb_standard-600x165.png 600w, https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/05\/mongodb_standard.png 1139w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udccc \u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 <strong>MongoDB<\/strong><\/h2>\n\n\n\n<p><strong>MongoDB<\/strong> \u2014 \u044d\u0442\u043e <strong>\u0431\u0430\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445<\/strong>, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f <strong>\u043d\u0435 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0430\u0445, \u043a\u0430\u043a \u0432 \u043e\u0431\u044b\u0447\u043d\u044b\u0445 \u0431\u0430\u0437\u0430\u0445<\/strong>, \u0430 \u0432 \u0432\u0438\u0434\u0435 <strong>\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432<\/strong>, \u043f\u043e\u0445\u043e\u0436\u0438\u0445 \u043d\u0430 <strong>JSON<\/strong> (\u0438\u043b\u0438 <code>\u0441\u043b\u043e\u0432\u0430\u0440\u044c<\/code> \u0432 Python).<\/p>\n\n\n\n<p>\u041f\u0440\u043e\u0449\u0435 \u0433\u043e\u0432\u043e\u0440\u044f:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>MongoDB \u2014 \u044d\u0442\u043e \u043a\u0430\u043a \u0448\u043a\u0430\u0444\u0447\u0438\u043a \u0441 \u044f\u0449\u0438\u043a\u0430\u043c\u0438, \u0433\u0434\u0435 \u043a\u0430\u0436\u0434\u044b\u0439 \u044f\u0449\u0438\u043a (\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442) \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0432 \u0443\u0434\u043e\u0431\u043d\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435 &#8220;\u043a\u043b\u044e\u0447: \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435&#8221;, \u0438 \u043c\u043e\u0436\u043d\u043e \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0447\u0442\u043e \u0443\u0433\u043e\u0434\u043d\u043e.<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udcc1 \u041a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u044f (<strong>Collection<\/strong>)<\/h2>\n\n\n\n<p><strong>\u041a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u044f<\/strong> \u2014 \u044d\u0442\u043e \u043a\u0430\u043a <strong>\u043f\u0430\u043f\u043a\u0430<\/strong>, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f <strong>\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b<\/strong>.<br>\u041f\u043e\u0445\u043e\u0436\u0430 \u043d\u0430 <strong>\u0442\u0430\u0431\u043b\u0438\u0446\u0443<\/strong> \u0432 SQL, \u043d\u043e \u0442\u0443\u0442 \u043d\u0435\u0442 \u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432 \u2014 \u043a\u0430\u0436\u0434\u044b\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u043c.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u041f\u0440\u0438\u043c\u0435\u0440: \u041a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u044f <code>users<\/code> \u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b \u043f\u0440\u043e \u0440\u0430\u0437\u043d\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439.<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udcc4 \u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442 (<strong>Document<\/strong>)<\/h2>\n\n\n\n<p><strong>\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442<\/strong> \u2014 \u044d\u0442\u043e \u043a\u0430\u043a <strong>\u043e\u0434\u043d\u0430 \u0437\u0430\u043f\u0438\u0441\u044c<\/strong> \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438.<br>\u041e\u043d \u043f\u0438\u0448\u0435\u0442\u0441\u044f \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 JSON (\u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 BSON \u2014 \u044d\u0442\u043e \u043f\u043e\u0447\u0442\u0438 \u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435).<br>\u041a\u0430\u0436\u0434\u044b\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u2014 \u044d\u0442\u043e \u043a\u0430\u043a \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u043b\u0438 \u0441\u043b\u043e\u0432\u0430\u0440\u044c:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: java; title: ; notranslate\" title=\"\">\n{\n  &quot;name&quot;: &quot;John&quot;,\n  &quot;age&quot;: 30,\n  &quot;email&quot;: &quot;john@example.com&quot;\n}\n<\/pre><\/div>\n\n\n<p>\u042d\u0442\u043e \u043a\u0430\u043a \u043e\u0434\u0438\u043d \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0432 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83c\udd94 \u041f\u043e\u043b\u0435 <code>_id<\/code><\/h2>\n\n\n\n<p>\u041a\u0430\u0436\u0434\u044b\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 <strong>\u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439 ID<\/strong> (<code>_id<\/code>) \u2014 \u043a\u0430\u043a \u043f\u0430\u0441\u043f\u043e\u0440\u0442.<br>\u0422\u044b \u043c\u043e\u0436\u0435\u0448\u044c \u0441\u0430\u043c \u0435\u0433\u043e \u0437\u0430\u0434\u0430\u0442\u044c \u0438\u043b\u0438 MongoDB \u0441\u0434\u0435\u043b\u0430\u0435\u0442 \u044d\u0442\u043e \u0437\u0430 \u0442\u0435\u0431\u044f.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udcce \u0411\u0430\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 (<strong>Database<\/strong>)<\/h2>\n\n\n\n<p><strong>\u0411\u0430\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445<\/strong> \u0432 MongoDB \u2014 \u044d\u0442\u043e \u043a\u0430\u043a <strong>\u0433\u043b\u0430\u0432\u043d\u0430\u044f \u043f\u0430\u043f\u043a\u0430<\/strong>, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043b\u0435\u0436\u0430\u0442 <strong>\u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0438<\/strong>.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>MongoDB \u2192 \u0411\u0430\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u2192 \u041a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0438 \u2192 \u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\uddf0 \u0414\u0440\u0443\u0433\u0438\u0435 \u0432\u0430\u0436\u043d\u044b\u0435 \u0442\u0435\u0440\u043c\u0438\u043d\u044b:<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u0422\u0435\u0440\u043c\u0438\u043d<\/th><th>\u041f\u043e\u044f\u0441\u043d\u0435\u043d\u0438\u0435<\/th><\/tr><\/thead><tbody><tr><td><strong>BSON<\/strong><\/td><td>\u0412\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 MongoDB (\u043a\u0430\u043a JSON, \u043d\u043e \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u0438 \u0441 \u0442\u0438\u043f\u0430\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u0445)<\/td><\/tr><tr><td><strong>CRUD<\/strong><\/td><td>\u041e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438: Create (\u0441\u043e\u0437\u0434\u0430\u0442\u044c), Read (\u0447\u0438\u0442\u0430\u0442\u044c), Update (\u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c), Delete (\u0443\u0434\u0430\u043b\u0438\u0442\u044c)<\/td><\/tr><tr><td><strong>Index<\/strong><\/td><td>\u041a\u0430\u043a \u043e\u0433\u043b\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043a\u043d\u0438\u0433\u0438 \u2014 \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u0431\u044b\u0441\u0442\u0440\u043e \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c \u043d\u0443\u0436\u043d\u044b\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b<\/td><\/tr><tr><td><strong>Query<\/strong><\/td><td>\u0417\u0430\u043f\u0440\u043e\u0441 \u2014 \u0441\u043f\u043e\u0441\u043e\u0431 \u043d\u0430\u0439\u0442\u0438 \u043d\u0443\u0436\u043d\u044b\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b \u043f\u043e \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u043c<\/td><\/tr><tr><td><strong>Aggregation<\/strong><\/td><td>\u041c\u043e\u0449\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0434\u043b\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0438 \u043f\u043e\u0434\u0441\u0447\u0451\u0442\u043e\u0432, \u043a\u0430\u043a <code>GROUP BY<\/code> \u0432 SQL<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><\/h2>\n\n\n\n<h2 class=\"wp-block-heading\">\u041f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u0434\u0430 \u0441 \u043f\u043e\u044f\u0441\u043d\u0435\u043d\u0438\u044f\u043c\u0438 \u0441 \u0443\u0440\u043e\u043a\u0430<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: java; title: ; notranslate\" title=\"\">\ndb.users.insert({\n    name: &quot;Gleb&quot;,\n    age:31\n})\n\ndb.users.insertMany(&#x5B;\n    {name: &quot;vasya&quot;, age: 28},\n    {name: &quot;petya&quot;, age: 38},\n    {name: &quot;kolja&quot;, age: 18},\n    {name: &quot;irina&quot;, age: 48},\n    {name: &quot;marina&quot;, age: 58}\n])\n\ndb.users.find() - \u043e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u044c \u0432\u0441\u0435\u0445 \u044e\u0437\u0435\u0440\u043e\u0432\n\ndb.users.find({age:28}) - \u043f\u043e\u043a\u0430\u0436\u0435\u0442 \u0432\u0441\u0435\u0445 \u0447\u0435\u0439 \u0432\u043e\u0437\u0440\u0430\u0441\u0442 28\n\ndb.users.find({$or:&#x5B;{name:&quot;petya&quot;}, {age:18}]}) - \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442 \u0432\u0441\u0435\u0445 \u041f\u0435\u0442\u044c \u0438 \u0435\u0449\u0435 \u0442\u0435  \u0443 \u043a\u043e\u0433\u043e \u0432\u043e\u0437\u0440\u0430\u0441\u0442 18\n\ndb.users.find({age:{$lt:28}}) - lt less than \/ \u043c\u0435\u043d\u044c\u0448\u0435 \u0447\u0435\u043c\n\ndb.users.find({age:{$gt:28}}) - gt grater than \/ \u0431\u043e\u043b\u044c\u0448\u0435 \u0447\u0435\u043c\n\ndb.users.find({age:{$gte:28}}) -gte equals \/ \u0431\u043e\u043b\u044c\u0448\u0435 \u043b\u0438\u0431\u043e \u0440\u0430\u0432\u043d\u043e\n\ndb.users.find({age:{$ne:28}}) - not equals \u043d\u0435 \u0440\u0430\u0432\u0435\u043d\n\ndb.users.find().sort({age:-1}) - (-1)\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430 \u043d\u0430 \u0443\u0431\u044b\u0432\u0430\u043d\u0438\u0435\n\ndb.users.find().sort({age:1}) - (1) \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430 \u043f\u043e \u0432\u043e\u0437\u0440\u0430\u0441\u0442\u0430\u043d\u0438\u044e\n\ndb.users.find().limit(2) - \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442 \u043f\u0435\u0440\u0432\u044b\u0435 2 \u0437\u0430\u043f\u0438\u0441\u0438\n\ndb.users.findOne({_id:ObjectId(&#039;682d82a0320c55eb0a1ba734&#039;)}) - \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0438\u043c\u0435\u043d\u043d\u043e \u043f\u043e \u044d\u0442\u043e\u043c\u0443 ID\n\ndb.users.update(\n{name:&quot;Gleb&quot;},\n{\n    $set:{\n        name: &quot;Ilon mask&quot;,\n            age: 45\n    }\n}\n)\n-\u043c\u0435\u043d\u044f\u0435\u043c\/\u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 (\u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c) \u0447\u0442\u043e \u0438\u0449\u0435\u043c \u043d\u0430 \u0447\u0442\u043e \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u043c\n\ndb.users.updateMany(\n    {},\n    {\n        $rename:{\n            name: &quot;fullname&quot;,\n        }\n    }\n)\n--\u043c\u0435\u043d\u044f\u0435\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u043b\u044f\n\ndb.users.deleteOne({age:45}) - \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u043e \u043a\u0440\u0438\u0442\u0435\u0440\u0438\u044e\n\ndb.users.bulkWrite(&#x5B;\n    {\n        insertOne: {\n            document: {fullname: &quot;nastya&quot;, age: 18}\n        }\n    },\n    {\n        deleteOne: {\n            filter: {fullname: &quot;petya&quot;}\n        }\n    }\n])\n\n-\u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u0438 \u0443\u0434\u0430\u043b\u0438\u043b\u0438 \u043e\u0434\u043d\u043e\u0433\u043e\n\ndb.users.update(\n    {fullname: &quot;vasya&quot;},\n    {\n        $set:{\n            posts:&#x5B;\n                {title: &#039;javascript&#039;, text: &#039;js top&#039;},\n                {title: &#039;mongo&#039;, text: &#039;monogo db&#039;}\n            ]\n        }\n    }\n)\n\n-\u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u0437\u0430\u043f\u0438\u0441\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u0412\u0430\u0441\u044f\n\ndb.users.findOne(\n    {fullname: &quot;vasya&quot;},\n    {posts:1}\n)\n-\u043e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u044c \u043f\u043e\u0441\u0442\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\n\ndb.users.find(\n    {\n        posts:{\n            $elemMatch:{\n                title: &#039;javascript&#039;\n            }\n        }\n    }\n)\n-\u043e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0443 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0435\u0441\u0442\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u043f\u043e\u0441\u0442\n\n\ndb.users.find({posts: {$exists:true}}) - \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0443 \u043a\u043e\u0433\u043e \u0435\u0441\u0442\u044c \u043f\u043e\u0441\u0442\u044b\n\n\n<\/pre><\/div>\n\n\n<h1 class=\"wp-block-heading\"><strong>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0447\u0435\u0440\u0435\u0437 PHP<\/strong><\/h1>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udd0d 1. \u0423\u0437\u043d\u0430\u0439 \u0432\u0435\u0440\u0441\u0438\u044e \u0441\u0432\u043e\u0435\u0433\u043e PHP<\/h3>\n\n\n\n<p>\u0412 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0435 (\u0432 PHPStorm):<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>php -i | findstr \"PHP Version\"<\/code><\/pre>\n\n\n\n<p>\ud83d\udce5 \u0421\u043a\u0430\u0447\u0430\u0439 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 <code>php_mongodb.dll<\/code> \/\/ \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u0438 \u0441\u0432\u043e\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0438, \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0441\u043a\u0430\u0447\u0430\u043b \u043d\u0435 \u0442\u0443, \u0410\u041f\u0410\u0427 \u0432\u044b\u0431\u0438\u0432\u0430\u043b \u043e\u0448\u0438\u0431\u043a\u0443. <a href=\"https:\/\/pecl.php.net\/package\/mongodb\/1.16.0\/windows\">https:\/\/pecl.php.net\/package\/mongodb\/1.16.0\/windows<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"407\" height=\"150\" src=\"https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/05\/image-16.png\" alt=\"\" class=\"wp-image-888\" style=\"width:820px;height:auto\" srcset=\"https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/05\/image-16.png 407w, https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/05\/image-16-300x111.png 300w, https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/05\/image-16-150x55.png 150w\" sizes=\"auto, (max-width: 407px) 100vw, 407px\" \/><\/figure>\n\n\n\n<p>\u0437\u0430\u043a\u0438\u0434\u044b\u0432\u0430\u0435\u043c \u0435\u0433\u043e \u0432 \u043f\u0430\u043f\u043a\u0443 XAMPP &#8211; PHP &#8211; EXT (\u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f)<br>\u0434\u0430\u043b\u0435\u0435 \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0432 <strong>php.ini<\/strong> \u044d\u0442\u043e \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 (\u0431\u0435\u0437 ; \u044d\u0442\u043e \u0440\u0430\u0441\u043a\u043e\u043c\u0435\u043d\u0442\u0438\u0442 \u0435\u0433\u043e)<br><strong>extension=php_mongodb.dll<\/strong><\/p>\n\n\n\n<p>\ud83d\udd01 \u041f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438 Apache \u0432 XAMPP<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"672\" height=\"513\" src=\"https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/05\/image-17.png\" alt=\"\" class=\"wp-image-889\" srcset=\"https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/05\/image-17.png 672w, https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/05\/image-17-300x229.png 300w, https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/05\/image-17-150x115.png 150w, https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/05\/image-17-600x458.png 600w\" sizes=\"auto, (max-width: 672px) 100vw, 672px\" \/><\/figure>\n\n\n\n<p>\ud83d\udd01 \u041f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438 PHPStorm<\/p>\n\n\n\n<p><strong>php -m | findstr mongodb<\/strong><\/p>\n\n\n\n<p>\u0434\u043e\u043b\u0436\u043d\u043e \u043e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u0441\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u0435 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 mongo<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"525\" height=\"113\" src=\"https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/05\/image-18.png\" alt=\"\" class=\"wp-image-890\" srcset=\"https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/05\/image-18.png 525w, https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/05\/image-18-300x65.png 300w, https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/05\/image-18-150x32.png 150w\" sizes=\"auto, (max-width: 525px) 100vw, 525px\" \/><\/figure>\n\n\n\n<p>\u0414\u0430\u043b\u0435\u0435 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0441\u043e\u0435\u0434\u043d\u0435\u043d\u0438\u0435 \u0441 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u043e\u043c \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0432 \u043b\u043e\u0433\u0430\u0445 \u0434\u043e\u043b\u0436\u043d\u043e \u043e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u0441\u044f &#8220;\u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435&#8221;<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n&lt;?php\n\n\/\/ \u0421\u0442\u0440\u043e\u043a\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f (\u0437\u0430\u043c\u0435\u043d\u0438 &lt;db_password&gt; \u043d\u0430 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u043f\u0430\u0440\u043e\u043b\u044c!)\n$uri = &quot;mongodb+srv:\/\/glebdranitsyn:qwerty12345@cluster0.ke7lhpz.mongodb.net\/?retryWrites=true&amp;w=majority&amp;appName=Cluster0&quot;;\n\ntry {\n    \/\/ \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f\n    $manager = new MongoDB\\Driver\\Manager($uri);\n    echo &quot;\u2705 \u0423\u0441\u043f\u0435\u0448\u043d\u043e\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a MongoDB Atlas&lt;br&gt;&quot;;\n\n    \/\/ \u041f\u0440\u043e\u0441\u0442\u043e\u0439 \u0437\u0430\u043f\u0440\u043e\u0441 \u043a \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0438 testDB.users\n    $query = new MongoDB\\Driver\\Query(&#x5B;]);\n    $cursor = $manager-&gt;executeQuery(&quot;testDB.users&quot;, $query);\n\n    echo &quot;&lt;h3&gt;\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b \u0438\u0437 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0438 users:&lt;\/h3&gt;&quot;;\n    foreach ($cursor as $doc) {\n        echo &quot;&lt;pre&gt;&quot;;\n        print_r($doc);\n        echo &quot;&lt;\/pre&gt;&quot;;\n    }\n\n} catch (MongoDB\\Driver\\Exception\\Exception $e) {\n    echo &quot;\u274c \u041e\u0448\u0438\u0431\u043a\u0430: &quot; . $e-&gt;getMessage();\n}\n\n<\/pre><\/div>\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"747\" height=\"203\" src=\"https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/05\/image-19.png\" alt=\"\" class=\"wp-image-894\" style=\"width:789px;height:auto\" srcset=\"https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/05\/image-19.png 747w, https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/05\/image-19-300x82.png 300w, https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/05\/image-19-150x41.png 150w, https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/05\/image-19-600x163.png 600w\" sizes=\"auto, (max-width: 747px) 100vw, 747px\" \/><\/figure>\n\n\n\n<p>\u043c\u043e\u0436\u043d\u043e \u0442\u0430\u043a \u0436\u0435 \u0438 \u0447\u0435\u0440\u0435\u0437 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"960\" height=\"181\" src=\"https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/05\/image-20.png\" alt=\"\" class=\"wp-image-895\" srcset=\"https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/05\/image-20.png 960w, https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/05\/image-20-300x57.png 300w, https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/05\/image-20-768x145.png 768w, https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/05\/image-20-150x28.png 150w, https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/05\/image-20-600x113.png 600w\" sizes=\"auto, (max-width: 960px) 100vw, 960px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">\u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \/ \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e \u0431\u044b \u043d\u0430 cloudMongo \u043e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u043b\u0430\u0441\u044c testDB<\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n&lt;?php\n\n\/\/ \u0421\u0442\u0440\u043e\u043a\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f (\u0442\u0432\u043e\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u2014 \u0432\u0441\u0451 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e)\n$uri = &quot;mongodb+srv:\/\/glebdranitsyn:qwerty12345@cluster0.ke7lhpz.mongodb.net\/?retryWrites=true&amp;w=majority&amp;appName=Cluster0&quot;;\n\ntry {\n    \/\/ \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\n    $manager = new MongoDB\\Driver\\Manager($uri);\n    echo &quot;\u2705 \u0423\u0441\u043f\u0435\u0448\u043d\u043e\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a MongoDB Atlas&lt;br&gt;&quot;;\n\n    \/\/ \ud83d\udc49 \u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\n    $bulk = new MongoDB\\Driver\\BulkWrite;\n    $bulk-&gt;insert(&#x5B;\n        &quot;name&quot; =&gt; &quot;Alice&quot;,\n        &quot;email&quot; =&gt; &quot;alice@example.com&quot;,\n        &quot;created_at&quot; =&gt; new MongoDB\\BSON\\UTCDateTime()\n    ]);\n\n    $manager-&gt;executeBulkWrite(&quot;testDB.users&quot;, $bulk);\n    echo &quot;\ud83d\udfe2 \u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u0432 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u044e users&lt;br&gt;&lt;br&gt;&quot;;\n\n    \/\/ \ud83d\udc49 \u0427\u0438\u0442\u0430\u0435\u043c \u0432\u0441\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b\n    $query = new MongoDB\\Driver\\Query(&#x5B;]);\n    $cursor = $manager-&gt;executeQuery(&quot;testDB.users&quot;, $query);\n\n    echo &quot;&lt;h3&gt;\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b \u0438\u0437 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0438 users:&lt;\/h3&gt;&quot;;\n    foreach ($cursor as $doc) {\n        echo &quot;&lt;pre&gt;&quot;;\n        print_r($doc);\n        echo &quot;&lt;\/pre&gt;&quot;;\n    }\n\n} catch (MongoDB\\Driver\\Exception\\Exception $e) {\n    echo &quot;\u274c \u041e\u0448\u0438\u0431\u043a\u0430: &quot; . $e-&gt;getMessage();\n}\n\n<\/pre><\/div>\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"598\" src=\"https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/05\/image-21-1024x598.png\" alt=\"\" class=\"wp-image-899\" srcset=\"https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/05\/image-21-1024x598.png 1024w, https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/05\/image-21-300x175.png 300w, https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/05\/image-21-768x449.png 768w, https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/05\/image-21-150x88.png 150w, https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/05\/image-21-600x351.png 600w, https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/05\/image-21.png 1179w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"964\" height=\"942\" src=\"https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/05\/image-22.png\" alt=\"\" class=\"wp-image-902\" srcset=\"https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/05\/image-22.png 964w, https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/05\/image-22-300x293.png 300w, https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/05\/image-22-768x750.png 768w, https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/05\/image-22-150x147.png 150w, https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/05\/image-22-600x586.png 600w\" sizes=\"auto, (max-width: 964px) 100vw, 964px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\ud83d\udccc \u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 MongoDB MongoDB \u2014 \u044d\u0442\u043e \u0431\u0430\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u043d\u0435 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0430\u0445, \u043a\u0430\u043a \u0432 \u043e\u0431\u044b\u0447\u043d\u044b\u0445 \u0431\u0430\u0437\u0430\u0445, \u0430 \u0432 \u0432\u0438\u0434\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432, \u043f\u043e\u0445\u043e\u0436\u0438\u0445 \u043d\u0430 JSON (\u0438\u043b\u0438 \u0441\u043b\u043e\u0432\u0430\u0440\u044c \u0432 Python). \u041f\u0440\u043e\u0449\u0435 \u0433\u043e\u0432\u043e\u0440\u044f: MongoDB \u2014 \u044d\u0442\u043e \u043a\u0430\u043a \u0448\u043a\u0430\u0444\u0447\u0438\u043a \u0441 \u044f\u0449\u0438\u043a\u0430\u043c\u0438, \u0433\u0434\u0435 \u043a\u0430\u0436\u0434\u044b\u0439 \u044f\u0449\u0438\u043a (\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442) \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0432 \u0443\u0434\u043e\u0431\u043d\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435 &#8220;\u043a\u043b\u044e\u0447: \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435&#8221;, \u0438 \u043c\u043e\u0436\u043d\u043e \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0447\u0442\u043e &#8230; <a title=\"Mongo \/ noSQL andmebaas\" class=\"read-more\" href=\"https:\/\/glebdranitson24.thkit.ee\/wp\/?page_id=874\" aria-label=\"Read more about Mongo \/ noSQL andmebaas\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-874","page","type-page","status-publish"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Mongo \/ noSQL andmebaas - Gleb Dranitsyn \/ Portfolio<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/glebdranitson24.thkit.ee\/wp\/?page_id=874\" \/>\n<meta property=\"og:locale\" content=\"et_EE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Mongo \/ noSQL andmebaas - Gleb Dranitsyn \/ Portfolio\" \/>\n<meta property=\"og:description\" content=\"\ud83d\udccc \u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 MongoDB MongoDB \u2014 \u044d\u0442\u043e \u0431\u0430\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u043d\u0435 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0430\u0445, \u043a\u0430\u043a \u0432 \u043e\u0431\u044b\u0447\u043d\u044b\u0445 \u0431\u0430\u0437\u0430\u0445, \u0430 \u0432 \u0432\u0438\u0434\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432, \u043f\u043e\u0445\u043e\u0436\u0438\u0445 \u043d\u0430 JSON (\u0438\u043b\u0438 \u0441\u043b\u043e\u0432\u0430\u0440\u044c \u0432 Python). \u041f\u0440\u043e\u0449\u0435 \u0433\u043e\u0432\u043e\u0440\u044f: MongoDB \u2014 \u044d\u0442\u043e \u043a\u0430\u043a \u0448\u043a\u0430\u0444\u0447\u0438\u043a \u0441 \u044f\u0449\u0438\u043a\u0430\u043c\u0438, \u0433\u0434\u0435 \u043a\u0430\u0436\u0434\u044b\u0439 \u044f\u0449\u0438\u043a (\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442) \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0432 \u0443\u0434\u043e\u0431\u043d\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435 &#8220;\u043a\u043b\u044e\u0447: \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435&#8221;, \u0438 \u043c\u043e\u0436\u043d\u043e \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0447\u0442\u043e ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/glebdranitson24.thkit.ee\/wp\/?page_id=874\" \/>\n<meta property=\"og:site_name\" content=\"Gleb Dranitsyn \/ Portfolio\" \/>\n<meta property=\"article:modified_time\" content=\"2025-05-21T11:20:02+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/05\/mongodb_standard.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1139\" \/>\n\t<meta property=\"og:image:height\" content=\"314\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"4 minutit\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/glebdranitson24.thkit.ee\\\/wp\\\/?page_id=874\",\"url\":\"https:\\\/\\\/glebdranitson24.thkit.ee\\\/wp\\\/?page_id=874\",\"name\":\"Mongo \\\/ noSQL andmebaas - Gleb Dranitsyn \\\/ Portfolio\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/glebdranitson24.thkit.ee\\\/wp\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/glebdranitson24.thkit.ee\\\/wp\\\/?page_id=874#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/glebdranitson24.thkit.ee\\\/wp\\\/?page_id=874#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/glebdranitson24.thkit.ee\\\/wp\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/mongodb_standard-1024x282.png\",\"datePublished\":\"2025-05-21T08:58:41+00:00\",\"dateModified\":\"2025-05-21T11:20:02+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/glebdranitson24.thkit.ee\\\/wp\\\/?page_id=874#breadcrumb\"},\"inLanguage\":\"et\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/glebdranitson24.thkit.ee\\\/wp\\\/?page_id=874\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"et\",\"@id\":\"https:\\\/\\\/glebdranitson24.thkit.ee\\\/wp\\\/?page_id=874#primaryimage\",\"url\":\"https:\\\/\\\/glebdranitson24.thkit.ee\\\/wp\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/mongodb_standard.png\",\"contentUrl\":\"https:\\\/\\\/glebdranitson24.thkit.ee\\\/wp\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/mongodb_standard.png\",\"width\":1139,\"height\":314},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/glebdranitson24.thkit.ee\\\/wp\\\/?page_id=874#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\",\"item\":\"https:\\\/\\\/glebdranitson24.thkit.ee\\\/wp\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Mongo \\\/ noSQL andmebaas\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/glebdranitson24.thkit.ee\\\/wp\\\/#website\",\"url\":\"https:\\\/\\\/glebdranitson24.thkit.ee\\\/wp\\\/\",\"name\":\"Gleb Dranitsyn \\\/ Portfolio\",\"description\":\"Tarkvara aarendaja\",\"publisher\":{\"@id\":\"https:\\\/\\\/glebdranitson24.thkit.ee\\\/wp\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/glebdranitson24.thkit.ee\\\/wp\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"et\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/glebdranitson24.thkit.ee\\\/wp\\\/#organization\",\"name\":\"Gleb Dranitsyn \\\/ Portfolio\",\"url\":\"https:\\\/\\\/glebdranitson24.thkit.ee\\\/wp\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"et\",\"@id\":\"https:\\\/\\\/glebdranitson24.thkit.ee\\\/wp\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/glebdranitson24.thkit.ee\\\/wp\\\/wp-content\\\/uploads\\\/2025\\\/03\\\/cropped-cropped-logo1.jpg\",\"contentUrl\":\"https:\\\/\\\/glebdranitson24.thkit.ee\\\/wp\\\/wp-content\\\/uploads\\\/2025\\\/03\\\/cropped-cropped-logo1.jpg\",\"width\":400,\"height\":171,\"caption\":\"Gleb Dranitsyn \\\/ Portfolio\"},\"image\":{\"@id\":\"https:\\\/\\\/glebdranitson24.thkit.ee\\\/wp\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Mongo \/ noSQL andmebaas - Gleb Dranitsyn \/ Portfolio","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:\/\/glebdranitson24.thkit.ee\/wp\/?page_id=874","og_locale":"et_EE","og_type":"article","og_title":"Mongo \/ noSQL andmebaas - Gleb Dranitsyn \/ Portfolio","og_description":"\ud83d\udccc \u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 MongoDB MongoDB \u2014 \u044d\u0442\u043e \u0431\u0430\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u043d\u0435 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0430\u0445, \u043a\u0430\u043a \u0432 \u043e\u0431\u044b\u0447\u043d\u044b\u0445 \u0431\u0430\u0437\u0430\u0445, \u0430 \u0432 \u0432\u0438\u0434\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432, \u043f\u043e\u0445\u043e\u0436\u0438\u0445 \u043d\u0430 JSON (\u0438\u043b\u0438 \u0441\u043b\u043e\u0432\u0430\u0440\u044c \u0432 Python). \u041f\u0440\u043e\u0449\u0435 \u0433\u043e\u0432\u043e\u0440\u044f: MongoDB \u2014 \u044d\u0442\u043e \u043a\u0430\u043a \u0448\u043a\u0430\u0444\u0447\u0438\u043a \u0441 \u044f\u0449\u0438\u043a\u0430\u043c\u0438, \u0433\u0434\u0435 \u043a\u0430\u0436\u0434\u044b\u0439 \u044f\u0449\u0438\u043a (\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442) \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0432 \u0443\u0434\u043e\u0431\u043d\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435 &#8220;\u043a\u043b\u044e\u0447: \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435&#8221;, \u0438 \u043c\u043e\u0436\u043d\u043e \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0447\u0442\u043e ... Read more","og_url":"https:\/\/glebdranitson24.thkit.ee\/wp\/?page_id=874","og_site_name":"Gleb Dranitsyn \/ Portfolio","article_modified_time":"2025-05-21T11:20:02+00:00","og_image":[{"width":1139,"height":314,"url":"https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/05\/mongodb_standard.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"4 minutit"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/glebdranitson24.thkit.ee\/wp\/?page_id=874","url":"https:\/\/glebdranitson24.thkit.ee\/wp\/?page_id=874","name":"Mongo \/ noSQL andmebaas - Gleb Dranitsyn \/ Portfolio","isPartOf":{"@id":"https:\/\/glebdranitson24.thkit.ee\/wp\/#website"},"primaryImageOfPage":{"@id":"https:\/\/glebdranitson24.thkit.ee\/wp\/?page_id=874#primaryimage"},"image":{"@id":"https:\/\/glebdranitson24.thkit.ee\/wp\/?page_id=874#primaryimage"},"thumbnailUrl":"https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/05\/mongodb_standard-1024x282.png","datePublished":"2025-05-21T08:58:41+00:00","dateModified":"2025-05-21T11:20:02+00:00","breadcrumb":{"@id":"https:\/\/glebdranitson24.thkit.ee\/wp\/?page_id=874#breadcrumb"},"inLanguage":"et","potentialAction":[{"@type":"ReadAction","target":["https:\/\/glebdranitson24.thkit.ee\/wp\/?page_id=874"]}]},{"@type":"ImageObject","inLanguage":"et","@id":"https:\/\/glebdranitson24.thkit.ee\/wp\/?page_id=874#primaryimage","url":"https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/05\/mongodb_standard.png","contentUrl":"https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/05\/mongodb_standard.png","width":1139,"height":314},{"@type":"BreadcrumbList","@id":"https:\/\/glebdranitson24.thkit.ee\/wp\/?page_id=874#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430","item":"https:\/\/glebdranitson24.thkit.ee\/wp\/"},{"@type":"ListItem","position":2,"name":"Mongo \/ noSQL andmebaas"}]},{"@type":"WebSite","@id":"https:\/\/glebdranitson24.thkit.ee\/wp\/#website","url":"https:\/\/glebdranitson24.thkit.ee\/wp\/","name":"Gleb Dranitsyn \/ Portfolio","description":"Tarkvara aarendaja","publisher":{"@id":"https:\/\/glebdranitson24.thkit.ee\/wp\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/glebdranitson24.thkit.ee\/wp\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"et"},{"@type":"Organization","@id":"https:\/\/glebdranitson24.thkit.ee\/wp\/#organization","name":"Gleb Dranitsyn \/ Portfolio","url":"https:\/\/glebdranitson24.thkit.ee\/wp\/","logo":{"@type":"ImageObject","inLanguage":"et","@id":"https:\/\/glebdranitson24.thkit.ee\/wp\/#\/schema\/logo\/image\/","url":"https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/03\/cropped-cropped-logo1.jpg","contentUrl":"https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/03\/cropped-cropped-logo1.jpg","width":400,"height":171,"caption":"Gleb Dranitsyn \/ Portfolio"},"image":{"@id":"https:\/\/glebdranitson24.thkit.ee\/wp\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/glebdranitson24.thkit.ee\/wp\/index.php?rest_route=\/wp\/v2\/pages\/874","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/glebdranitson24.thkit.ee\/wp\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/glebdranitson24.thkit.ee\/wp\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/glebdranitson24.thkit.ee\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/glebdranitson24.thkit.ee\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=874"}],"version-history":[{"count":15,"href":"https:\/\/glebdranitson24.thkit.ee\/wp\/index.php?rest_route=\/wp\/v2\/pages\/874\/revisions"}],"predecessor-version":[{"id":904,"href":"https:\/\/glebdranitson24.thkit.ee\/wp\/index.php?rest_route=\/wp\/v2\/pages\/874\/revisions\/904"}],"wp:attachment":[{"href":"https:\/\/glebdranitson24.thkit.ee\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=874"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}