Login or Sign Up to become a member!
LessThanDot Site Logo

LessThanDot christmas Logo

A Technical Community for IT Professionals

Less Than Dot is a community of passionate IT professionals and enthusiasts dedicated to sharing technical knowledge, experience, and assistance. Inside you will find reference materials, interesting technical discussions, and expert tips and commentary. Once you register for an account you will have immediate access to the forums and all past articles and commentaries.

Browsing "nosql"

0

MongoDB 2.4 Released

MongoDB 2.4 has been released. MongoDB 2.4 is the latest stable release, following the September 2012 release of MongoDB 2.2. The MongoDB 2.4 release contains key new features along with performance improvements and bug fixes.

Here are the highlights…

Read More...
0

MongoDB: Using the web-based administrative tool

MongoDB ships with a web-based administrative tool. You can see this tool by going to http://localhost:28017/

You can see a bunch of stuff on this screen.

However when trying any of these on top

List all commands | Replica set status

Command…

Read More...
0

MongoDB: Returning documents where fields are null or not existing

In a regular SQL database, you can check if a column is null by using IS NULL
For example if you wanted to return all rows where the age is null, you would do the following

SELECT *
FROM SomeTable
WHERE age IS NULL

In a NoSQL database it is po…

Read More...
1

MongoDB: Creating capped collections

Let’s say you have a collection and you are only interested in storing the last 50 items or so. Everytime you add a new item, you want the oldest item to disappear. What you can do is create a capped collection. Here are some behaviors that capped colle…

Read More...
0

MongoDB: How to drop databases and collections

In this post we are going to look at how to drop database and collections. We already covered backup and restores, now that you know how to do that, it is safe to cover dropping collections and databases

Execute the following command, it will create…

Read More...
1

MongoDB: Exporting data into files

In this post we are going to take a look at how to export data into files. We are going to export data in json format as well as in csv format. To get started first connect to mongodb and create a new database named ExportDB

You can just execute the…

Read More...
1

MongoDB: How to backup all the databases with one command

We looked at how to backup and restore databases in the post MongoDB: How to backup and restore databases. We also looked at how to restore collection in the post MongoDB: How to restore collections. Today we are going to look at how to backup all the d…

Read More...
0

MongoDB: How to restore collections

In yesterday’s post MongoDB: How to backup and restore databases we looked at how to backup and restore a database, today we are going to look at how to restore a collection from a backup. Be aware that mongorestore and mongodump have to be executed fro…

Read More...
1

MongoDB: How to backup and restore databases

Today it is time to learn how to backup and restore databases in MongoDB. You do have jobs setup that automatically create backups right? If you do not, please close this window and go set that up first, your data is the most important part of the organ…

Read More...
0

MongoDB: How to limit results and how to page through results

In this post we are going to take a look at how to limit results in MongoDB as well how to page through results. MongoDB use limit to limit the number of results return, MongoDB use skip to skip a number of records from the results set. Using limit in c…

Read More...
Next Page »