• How to export MongoDB data into CSV file

    Is there a way for me to export my MongoDB data into a CSV file? I don't want to use any bash scripts. Any command I should know about? Thank you.

    ITKE828,990 pointsBadges:
  • MongoDB: Auto-incrementing primary ID

    In MySQL - I was able to add an incrementing ID. But I still can't figure out how to do it in my other database (I'm using MongoDB). What's the process to do that?

    ITKE828,990 pointsBadges:
  • Change MongoDB database name

    Does anyone know of a way to change the database name in MongoDB? I can't find how to do it anywhere. Also, I don't want to change the entire database - just the name.

    ITKE828,990 pointsBadges:
  • Export MongoDB records to CSV

    Could I possibly export my MongoDB records to a CSV file? I've tried this code: mongoexport --host localhost --db dbname --collection name --csv > test.csv But it keeps telling me to specify the fields that I want to export. Can I just export everything (not specify which fields)? Thank you.

    ITKE828,990 pointsBadges:
  • Migrate MySQL database to MongoDB

    I'm looking to change databases for development purposes. I'm thinking of going from MySQL to MongoDB. What's the best way to do this? Thanks!

    ITKE828,990 pointsBadges:
  • Which tool is preferable to test and evaluate the MySQL and MongoDB databases?

    I have developed a small case study online application using Hibernate that can communicate with both MySQL and MongoDB database. Now I need to test the performance of both the databases against each other by supplying a large dummy test data to the developed application on various scenarios such...

    gunasingh105 pointsBadges:
  • Backup strategy for MongoDB

    We currently have a dedicated server that has a MongoDB database around 10GB. We need to do daily backups but we can't have downtime. Would it be possible to use a replica on a single disk (with two instances of MongoDB that's running on different ports) and just take the second one offline /...

    ITKE828,990 pointsBadges:
  • MongoDB Java Connection driver

    I'm pretty new to MongoDB and I'm trying to figure out how to use the below code for its Java Connection driver. Why does it use a random number generator? if (!((_ok) ? true : (Math.random() > 0.1))) { return res; } Thanks!

    ITKE828,990 pointsBadges:
  • How to back up a MongoDB database

    Is there a way to create a backup of our Meteor MongoDB database? When we try to run meteor mongo, the Mongodump command doesn't work inside the meteor Mongoshell. What should we do?

    ITKE828,990 pointsBadges:
  • Backup plan for MongoDB database

    Our department recently switched from MySQL to MongoDB but our great data losses (which are more than 1 hour) is not acceptable to our bosses. Here's what we've come up with for a backup plan:] Hourly backup plan Daily backup plan Weekly backup plan Which is the best option for us? And how can we...

    ITKE828,990 pointsBadges:
  • Database that’s not limited with RAM size

    For a project we're about to start, we're looking for this type of database: Non-persistent Keys of database need to be updated once in 3-6 hours Quickly select data by key DBMS Not in-memory Java support We were looking at MongoDB but it has high fragmentation costs. Redis looks good but our data...

    ITKE828,990 pointsBadges:
  • What’s faster for big data processing: MongoDB or Redis

    I'm currently working on my big data project and I'm trying to decide between Redis or MongoDB. Which one would be faster for processing (from a performance standpoint)? I would appreciate any advice available.

    ITKE828,990 pointsBadges:
  • Speed up data processing in MongoDB

    I've been using MongoDB to get every document in a collection. It's working but with so many small documents (there are over a 100 million), it's very slow. Here's what I'm using: count <- mongo.count(mongo, ns, query) cursor <- mongo.find(mongo, query) name <- vector("character", count)...

    ITKE828,990 pointsBadges:
  • Case-insensitive query in MongoDB

    Does anyone know if it's possible to make a case-insensitive query in MongoDB? Something like this: > db.stuff.save({"foo":"bar"}); > db.stuff.find({"foo":"bar"}).count(); 1 > db.stuff.find({"foo":"BAR"}).count(); 0 Thanks!

    ITKE828,990 pointsBadges:
  • MongoDB: Find documents that have name array size greater than one

    We have a MongoDB collection that have documents in this format: { "_id" : ObjectId("4e8ae86d08101908e1000001"), "name" : ["Some Name"], "zipcode" : ["2223"] } { "_id" : ObjectId("4e8ae86d08101908e1000002"), "name" : ["Another ", "Name"], "zipcode" : ["2224"] } { "_id" :...

    ITKE828,990 pointsBadges:
  • Tell MongoDB to pretty print output

    Is there a way to tell MongoDB to pretty print output? Right now, everything is output to a single line and it's pretty difficult to read (especially with arrays and documents). I appreciate the help.

    ITKE828,990 pointsBadges:
  • Query MongoDB with LIKE

    I'm using MongoDB but I need a query like SQL's like. Something along the lines of this: select * from users where name like '%m%' Is there a way to do the same in MongoDB? I would appreciate any help.

    ITKE828,990 pointsBadges:
  • MongoDB: Checking to see if an array field contains an unique value

    I've been using MongoDB for over a month now and I have a blog post collection and each one has tags filled (which is an array). This is what it looks like: blogpost1.tags = ['tag1', 'tag2', 'tag3', 'tag4', 'tag5'] blogpost2.tags = ['tag2', 'tag3'] blogpost3.tags = ['tag2', 'tag3', 'tag4', 'tag5']...

    ITKE828,990 pointsBadges:
  • How to create a funnel in MongoDB

    In MongoDB, I have a collection that's named event (it basically tracks events from mobile applications). Here's what the structure of the document is: { eventName:"eventA", screenName:"HomeScreen", timeStamp: NumberLong("135698658"), tracInfo: { ..., "userId":"user1", "sessionId":"123cdasd2123",...

    ITKE828,990 pointsBadges:
  • How to get a random record in MongoDB

    I have roughly a 100 million records and I need to get a random record in MongoDB. What's the best way to do this? I already have the data ready to go but there's no field from which I can generate a random number / obtain and random row. I would appreciate the help.

    ITKE828,990 pointsBadges:

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following