WWW.DBVERSITY.COM
WWW.DBVERSITY.COM
Menu
  • Home
  • About us
  • Discussions
  • Login / Register
Welcome to the world of Database Technologies
Browse: Home » $setOnInsert with a shard key – not possible ?

$setOnInsert with a shard key – not possible ?

February 16, 2016 · by dbversity · in MongoDB

Having the collection empty, when trying to do an upsert using $setOnInsert on a shard key I get the following error: Can’t modify shard key’s value. field: card: 1.0 collection: vizvid.total_video_views mongos> db.dbversity.status() { “sharded” : true, “ns” : “dbfry.dbversity”,…

Categories

Categories

Copyright © 2025 WWW.DBVERSITY.COM

Powered by WordPress and Origin