O'Reilly logo

Learning Phalcon PHP by Calin Rada

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Implementing MongoDB

In this section, we will implement a simple log for articles. Of course, you can have your entire website running on Mongo. It is incredibly fast, but personally, I don't like to use it for big projects because Mongo can be very greedy with space. In order to get an overall idea, in the past, I had to index prices for nearly 5,000 properties (apartments, villas, and houses) for 4 years and the size requirement was approximately 50 GB. At my current workplace, we have migrated SMS logs to Mongo and we have nearly 3 million SMS logs for about 20 GB of space. For a relatively small website, MongoDB is perfect, or if you know that space won't be an issue, just go for it.

We will not cover Mongo in this section, but there will an ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required