{"id":1447,"date":"2018-08-09T11:56:43","date_gmt":"2018-08-09T11:56:43","guid":{"rendered":"http:\/\/dbtut.com\/?p=1447"},"modified":"2018-11-09T21:15:12","modified_gmt":"2018-11-09T21:15:12","slug":"unshard-a-sharded-collection-in-mongodb","status":"publish","type":"post","link":"https:\/\/dbtut.com\/index.php\/2018\/08\/09\/unshard-a-sharded-collection-in-mongodb\/","title":{"rendered":"Unshard a sharded collection in MongoDB"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>Yesterday in one of our mongodb databases developer asked for unshard a sharded collection.<\/p>\n<p>Yes it is possible to unshard a sharded collection but it is not a cute process \ud83d\ude42 \u00a0\u00a0As the data has propagated between 3 servers, at first we need to take all data into primary server.<\/p>\n<p>In addition to this, this process needs down time.<\/p>\n<p>Before moving data to the primary shard we need to shutdown all shards and all mongos except one.<\/p>\n<p>After finishing the changes at that mongos instance, wee need to restart the mongos, too.<\/p>\n<pre class=\"lang:default decode:true \">database = 'db'\r\n\r\ncollection = database + '.fs.chunks'\r\n\r\n\u00a0sh.stopBalancer()\r\n\r\nuse config\r\n\r\nprimary = db.databases.findOne({_id: database}).primary\r\n\r\n\u00a0\/\/ move all chunks to primary\r\n\r\ndb.chunks.find({ns: collection, shard: {$ne: primary}}).forEach(function(chunk){print('moving chunk from', chunk.shard, 'to', primary, '::', tojson(chunk.min), '--&gt;', tojson(chunk.max));sh.moveChunk(collection, chunk.min, primary);});\r\n\r\n\u00a0\/\/ unshard\r\n\r\ndb.collections.remove({ \"_id\" : \"test.fs.chunks\" })\r\n\r\ndb.chunks.remove({ ns : collection })<\/pre>\n<p>&nbsp;<\/p>\n<p>Here we can start shards and other mongos.<\/p>\n<pre class=\"lang:default decode:true \">\/\/ flush all mongos\r\n\r\nuse admin\r\n\r\ndb.runCommand({ flushRouterConfig: 1 })<\/pre>\n<p>&nbsp;<\/p>\n<p>As this process has many manual steps it is a little challenging process.<\/p>\n<p>The size of the collection to make unsharded is not\u00a0 big so we used another method.<\/p>\n<p>First we create a copy collection by insert.<\/p>\n<pre class=\"lang:default decode:true \">db.Collection.find({}).forEach(\u00a0\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0function(myDoc) {\u00a0\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0db.CollectionCopy.insert(myDoc);\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0}\u00a0\r\n\r\n);<\/pre>\n<p>&nbsp;<\/p>\n<p>After the insert process finishes, we dropped the collection named &#8216;Collection&#8217;.<\/p>\n<p>While Dropping a sharded collection, it is important to validate the dropping process is succeeded in all the shards and in config database.<\/p>\n<p>Dropping a Collection in a Sharded Cluster<\/p>\n<p>1- Drop the collection using a mongos<\/p>\n<pre class=\"lang:default decode:true \">use db\r\n\r\ndb.Collection.drop()<\/pre>\n<p>2- Connect to each shard&#8217;s primary and verify the namespace has been dropped. If it has not, please drop it.<\/p>\n<p>3- Connect to a mongos, switch to the config database and remove any reference to the removed namespace from the collections chunks, locks collections:<\/p>\n<pre class=\"lang:default decode:true \">use config\r\n\r\ndb.collections.remove( { _id: \"db.Collection\" } )\r\n\r\ndb.chunks.remove( { ns: \"db.Collection\" } )\r\n\r\ndb.locks.remove( { _id: \"db.Collection\" } )<\/pre>\n<p>&nbsp;<\/p>\n<p>Connect to each mongos and run flushRouterConfig<\/p>\n<p>After dropping is succeeded, we can change the name of the copy collection:<\/p>\n<pre class=\"lang:default decode:true \">db.Collectioncopy.renameCollection(\"Collection\")<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>As a note :<\/strong> rename collection is not supported in sharded collections.<\/p>\n<p>After rename we can create new index on this unsharded collection.<\/p>\n<p>As you know we need a little down time in this process too, because no new data must be come to existing collection and during drop and rename operations the appliacation can not find the collection. So during these operations we stopped the application.<\/p>\n<p>It is a challenging operation if your collection size is big so it is always important to decide sharding status and the right shard key before your data grows.<\/p>\n\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_1447\" class=\"pvc_stats all  \" data-element-id=\"1447\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/dbtut.com\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; Yesterday in one of our mongodb databases developer asked for unshard a sharded collection. Yes it is possible to unshard a sharded collection but it is not a cute process \ud83d\ude42 \u00a0\u00a0As the data has propagated between 3 servers, at first we need to take all data into primary server. In addition to this, &hellip;<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_1447\" class=\"pvc_stats all  \" data-element-id=\"1447\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/dbtut.com\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":13,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[1306],"tags":[1371,1374,1375,1376],"class_list":["post-1447","post","type-post","status-publish","format-standard","","category-mongodb","tag-mongodb","tag-sharded-clusters","tag-unsharded","tag-unsharding"],"aioseo_notices":[],"a3_pvc":{"activated":true,"total_views":3574,"today_views":0},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Unshard a sharded collection in MongoDB - Database Tutorials<\/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:\/\/dbtut.com\/index.php\/2018\/08\/09\/unshard-a-sharded-collection-in-mongodb\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Unshard a sharded collection in MongoDB - Database Tutorials\" \/>\n<meta property=\"og:description\" content=\"&nbsp; Yesterday in one of our mongodb databases developer asked for unshard a sharded collection. Yes it is possible to unshard a sharded collection but it is not a cute process \ud83d\ude42 \u00a0\u00a0As the data has propagated between 3 servers, at first we need to take all data into primary server. In addition to this, &hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/dbtut.com\/index.php\/2018\/08\/09\/unshard-a-sharded-collection-in-mongodb\/\" \/>\n<meta property=\"og:site_name\" content=\"Database Tutorials\" \/>\n<meta property=\"article:published_time\" content=\"2018-08-09T11:56:43+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-11-09T21:15:12+00:00\" \/>\n<meta name=\"author\" content=\"Selcen Sahin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Selcen Sahin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2018\/08\/09\/unshard-a-sharded-collection-in-mongodb\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2018\/08\/09\/unshard-a-sharded-collection-in-mongodb\/\"},\"author\":{\"name\":\"Selcen Sahin\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/person\/87438a648f4fcee5ebc050fa2d1b68ca\"},\"headline\":\"Unshard a sharded collection in MongoDB\",\"datePublished\":\"2018-08-09T11:56:43+00:00\",\"dateModified\":\"2018-11-09T21:15:12+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2018\/08\/09\/unshard-a-sharded-collection-in-mongodb\/\"},\"wordCount\":357,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\/\/dbtut.com\/#organization\"},\"keywords\":[\"MongoDB\",\"sharded clusters\",\"unsharded\",\"unsharding\"],\"articleSection\":[\"MongoDB\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/dbtut.com\/index.php\/2018\/08\/09\/unshard-a-sharded-collection-in-mongodb\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2018\/08\/09\/unshard-a-sharded-collection-in-mongodb\/\",\"url\":\"https:\/\/dbtut.com\/index.php\/2018\/08\/09\/unshard-a-sharded-collection-in-mongodb\/\",\"name\":\"Unshard a sharded collection in MongoDB - Database Tutorials\",\"isPartOf\":{\"@id\":\"https:\/\/dbtut.com\/#website\"},\"datePublished\":\"2018-08-09T11:56:43+00:00\",\"dateModified\":\"2018-11-09T21:15:12+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2018\/08\/09\/unshard-a-sharded-collection-in-mongodb\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/dbtut.com\/index.php\/2018\/08\/09\/unshard-a-sharded-collection-in-mongodb\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2018\/08\/09\/unshard-a-sharded-collection-in-mongodb\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/dbtut.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Unshard a sharded collection in MongoDB\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/dbtut.com\/#website\",\"url\":\"https:\/\/dbtut.com\/\",\"name\":\"Database Tutorials\",\"description\":\"MSSQL, Oracle, PostgreSQL, MySQL, MariaDB, DB2, Sybase, Teradata, Big Data, NOSQL, MongoDB, Couchbase, Cassandra, Windows, Linux\",\"publisher\":{\"@id\":\"https:\/\/dbtut.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/dbtut.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/dbtut.com\/#organization\",\"name\":\"dbtut\",\"url\":\"https:\/\/dbtut.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg\",\"contentUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg\",\"width\":223,\"height\":36,\"caption\":\"dbtut\"},\"image\":{\"@id\":\"https:\/\/dbtut.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/person\/87438a648f4fcee5ebc050fa2d1b68ca\",\"name\":\"Selcen Sahin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/403f3e1ed22269aba4b27e275764c81032219d846808ea020c5512c9ffe300f6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/403f3e1ed22269aba4b27e275764c81032219d846808ea020c5512c9ffe300f6?s=96&d=mm&r=g\",\"caption\":\"Selcen Sahin\"},\"url\":\"https:\/\/dbtut.com\/index.php\/author\/selcensahin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Unshard a sharded collection in MongoDB - Database Tutorials","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:\/\/dbtut.com\/index.php\/2018\/08\/09\/unshard-a-sharded-collection-in-mongodb\/","og_locale":"en_US","og_type":"article","og_title":"Unshard a sharded collection in MongoDB - Database Tutorials","og_description":"&nbsp; Yesterday in one of our mongodb databases developer asked for unshard a sharded collection. Yes it is possible to unshard a sharded collection but it is not a cute process \ud83d\ude42 \u00a0\u00a0As the data has propagated between 3 servers, at first we need to take all data into primary server. In addition to this, &hellip;","og_url":"https:\/\/dbtut.com\/index.php\/2018\/08\/09\/unshard-a-sharded-collection-in-mongodb\/","og_site_name":"Database Tutorials","article_published_time":"2018-08-09T11:56:43+00:00","article_modified_time":"2018-11-09T21:15:12+00:00","author":"Selcen Sahin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Selcen Sahin","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/dbtut.com\/index.php\/2018\/08\/09\/unshard-a-sharded-collection-in-mongodb\/#article","isPartOf":{"@id":"https:\/\/dbtut.com\/index.php\/2018\/08\/09\/unshard-a-sharded-collection-in-mongodb\/"},"author":{"name":"Selcen Sahin","@id":"https:\/\/dbtut.com\/#\/schema\/person\/87438a648f4fcee5ebc050fa2d1b68ca"},"headline":"Unshard a sharded collection in MongoDB","datePublished":"2018-08-09T11:56:43+00:00","dateModified":"2018-11-09T21:15:12+00:00","mainEntityOfPage":{"@id":"https:\/\/dbtut.com\/index.php\/2018\/08\/09\/unshard-a-sharded-collection-in-mongodb\/"},"wordCount":357,"commentCount":1,"publisher":{"@id":"https:\/\/dbtut.com\/#organization"},"keywords":["MongoDB","sharded clusters","unsharded","unsharding"],"articleSection":["MongoDB"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/dbtut.com\/index.php\/2018\/08\/09\/unshard-a-sharded-collection-in-mongodb\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/dbtut.com\/index.php\/2018\/08\/09\/unshard-a-sharded-collection-in-mongodb\/","url":"https:\/\/dbtut.com\/index.php\/2018\/08\/09\/unshard-a-sharded-collection-in-mongodb\/","name":"Unshard a sharded collection in MongoDB - Database Tutorials","isPartOf":{"@id":"https:\/\/dbtut.com\/#website"},"datePublished":"2018-08-09T11:56:43+00:00","dateModified":"2018-11-09T21:15:12+00:00","breadcrumb":{"@id":"https:\/\/dbtut.com\/index.php\/2018\/08\/09\/unshard-a-sharded-collection-in-mongodb\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/dbtut.com\/index.php\/2018\/08\/09\/unshard-a-sharded-collection-in-mongodb\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/dbtut.com\/index.php\/2018\/08\/09\/unshard-a-sharded-collection-in-mongodb\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/dbtut.com\/"},{"@type":"ListItem","position":2,"name":"Unshard a sharded collection in MongoDB"}]},{"@type":"WebSite","@id":"https:\/\/dbtut.com\/#website","url":"https:\/\/dbtut.com\/","name":"Database Tutorials","description":"MSSQL, Oracle, PostgreSQL, MySQL, MariaDB, DB2, Sybase, Teradata, Big Data, NOSQL, MongoDB, Couchbase, Cassandra, Windows, Linux","publisher":{"@id":"https:\/\/dbtut.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/dbtut.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/dbtut.com\/#organization","name":"dbtut","url":"https:\/\/dbtut.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dbtut.com\/#\/schema\/logo\/image\/","url":"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg","contentUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg","width":223,"height":36,"caption":"dbtut"},"image":{"@id":"https:\/\/dbtut.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/dbtut.com\/#\/schema\/person\/87438a648f4fcee5ebc050fa2d1b68ca","name":"Selcen Sahin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dbtut.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/403f3e1ed22269aba4b27e275764c81032219d846808ea020c5512c9ffe300f6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/403f3e1ed22269aba4b27e275764c81032219d846808ea020c5512c9ffe300f6?s=96&d=mm&r=g","caption":"Selcen Sahin"},"url":"https:\/\/dbtut.com\/index.php\/author\/selcensahin\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/posts\/1447","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/comments?post=1447"}],"version-history":[{"count":0,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/posts\/1447\/revisions"}],"wp:attachment":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/media?parent=1447"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/categories?post=1447"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/tags?post=1447"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}