News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPMaster.com:
MongoDB Indexing, Part 2
May 13, 2013 @ 10:36:46

PHPMaster.com has posted part two of their series looking at indexing in MongoDB databases (part one here) with some more advanced concepts Mongo makes available.

In part 1 of this series we had an introduction to indexing in MongoDB. we saw how to create, use, and analyze queries with indexes giving us a good foundation to build on. In this part, we'll take a look at a few more small but important concepts, like indexing on sub-documents and embedded fields, covered queries, and index direction.

They use the same "posts" collection from the previous article, showing you how to index it based on a "location" sub document and "embedded fields" inside of it. They also touch on complex sorting with a multi-field index and the idea of "covered queries." These are queries that all fields queried are part of an index as well as all returned. They finish up the article by showing you how to remove indexes too.

0 comments voice your opinion now!
mongodb index tutorial example series query

Link: http://phpmaster.com/mongodb-indexing-2

blog comments powered by Disqus

Similar Posts

Wan Qi Chen: Background jobs with php and resque (Series, Parts 4, 5 & 6)

NETTUTS.com: Create a Twitter-Like "Load More" Widget

David Müller's Blog: Parallel processing in PHP

Nikita Popov: Cooperative multitasking using coroutines (in PHP!)

EchoDitto Labs Blog: How to Configure Eclipse PDT with Zend Server Debugger on MAMP for Drupal


Community Events











Don't see your event here?
Let us know!


hack unittest package symfony2 introduction hhvm overview code series opinion composer podcast application language component release framework facebook security install

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework