MongoDB vs. Cassandra [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Stack Overflow. Closed 5 years ago. Improve this question I am evaluating what might be the best migration option. Currently, I am on a sharded MySQL (horizontal partition), … Read more

MongoDB vs. Cassandra [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Stack Overflow. Closed 5 years ago. Improve this question I am evaluating what might be the best migration option. Currently, I am on a sharded MySQL (horizontal partition), … Read more

MongoDB vs. Cassandra [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Stack Overflow. Closed 5 years ago. Improve this question I am evaluating what might be the best migration option. Currently, I am on a sharded MySQL (horizontal partition), … Read more

Query for documents where array size is greater than 1

I have a MongoDB collection with documents in the following format: { “_id” : ObjectId(“4e8ae86d08101908e1000001”), “name” : [“Name”], “zipcode” : [“2223”] } { “_id” : ObjectId(“4e8ae86d08101908e1000002”), “name” : [“Another “, “Name”], “zipcode” : [“2224”] } I can currently get documents that match a specific array size: db.accommodations.find({ name : { $size : 2 }}) This … Read more

How can I list all collections in the MongoDB shell?

In the MongoDB shell, how do I list all collections for the current database that I’m using? 23 s 23 You can do… JavaScript (shell): db.getCollectionNames() Node.js: db.listCollections() Non-JavaScript (shell only): show collections The reason I call that non-JavaScript is because: $ mongo prodmongo/app –eval “show collections” MongoDB shell version: 3.2.10 connecting to: prodmongo/app 2016-10-26T19:34:34.886-0400 … Read more