background preloader

MongoDB

Facebook Twitter

MongoDB Revisited » phpmaster. In my previous article Introduction to MongoDB I discussed installing Mongo, its PHP extension, and how to perform simple insert and find operations.

MongoDB Revisited » phpmaster

Of course there are many, many more features than what I mentioned so I wanted to write another article to show you some of them. In this article you’ll learn about cursors, additional query filters, and running queries on arrays and embedded documents. Cursors First let’s talk about cursors in MongoDB. In the earlier article you saw an example of a find operation like the one below, which selects all the documents found in a collection matching the passed criteria:

Introduction to MongoDB » phpmaster. As a PHP developer you are probably used to seeing applications and articles using MySQL or some other relational database management system (RDBMS).

Introduction to MongoDB » phpmaster

But in the past few years, a new kind of database has gained adoption in the software development community. This new type of database focuses on document objects rather than strictly defined records and relationships, and has been nicknamed “NoSQL.” There are a lot of implementations of the NoSQL concept, but one of the most famous and widely used NoSQL databases is MongoDB.

I think it’s one of the most interesting NoSQL databases available currently, and it’s considered by many to be one of the easiest to use (which has helped it gain widespread adoption). In this article I’ll introduce you to NoSQL with MongoDB. Dev.lithify.me/drafts/branches/master/en/00_quickstart/blog.wiki. Downloads.