Using Mongodb Alongside Codeigniter - Nosql

MongoDB is document-oriented NoSQL database.

What is NoSQL?
NoSQL is a sort of database that, different most relational databases, does non supply a SQL interface to manipulate data. NoSQL databases commonly organize the information inward a different fashion other than tables.

NoSQL databases are divided into 3 categories: column-oriented, key-value pairs, together with document-oriented databases.

SQL based relational databases create non scale good when they are distributed over multiple cluster nodes. Data partitioning is non an slow to implement solution when the applications purpose bring together queries together with transactions.

NoSQL databases are non new. Actually, at that spot were key-value duo based databases earlier relational database became popular.

What is a document-oriented database?

For document-oriented databases, a document is a information construction that has variable give away of properties. Each holding has a value that tin laissez passer on notice move scalar (number, string, etc.) or a vector (arrays or objects).

You tin laissez passer on notice run into a document equally an object or associative array similar inward PHP. To empathise meliorate this concept, hither is the Definition of a "person" document:
 $person = array(     "name" => "Cesar Rodas",     "country" => "Paraguay",     "languages" => array("Spanish", "English", "Guarani"), ); 
Documents create non accept a predefined schema similar relational database tables. Documents tin laissez passer on notice accept multiple properties. Documents tin laissez passer on notice equally good move grouped inward collections. The term collection is used from immediately on distinguish from the tables used yesteryear relational databases to shop records alongside a fixed give away of fields.

Another of import feature of documents is that they tin laissez passer on notice accept sub-documents. Sub-documents are used inward the house parent-child tables used alongside relational databases.

MongoDB
MongoDB (from “humongous”) is a scalable, high-performance, opened upward root NoSQL database. MongoDB is non-relational (no joins) together with then references (“foreign keys”) betwixt documents are by together with large resolved client-side yesteryear additional queries to the server (“linking”).
MongoDB is a real interesting document-oriented database implementation for several reasons:
  • - It uses JSON, instead of XML
  • - It is fast, equally it is written inward C++
  • - Supports index definitions
  • - Provides an slow to purpose inquiry interface, real similar to to a greater extent than or less database abstraction layers
  • - Supports operations alongside sub-documents
  • - Provides a native PHP extension
  • - Supports auto-sharding
  • - Supports map-reduce for information transformation

MongoDB together with Codeigniter
There is ane library out at that spot - Alex Bilbi has a lib that industrial plant but fine together with YES yous tin laissez passer on notice become most similar ActiveRecord. You tin laissez passer on notice persuasion yesteryear clicking below link.

CodeIgniter MongoDB Library

This is an active tape inspired CodeIgniter library to integrate a MongoDB database into your application.
Installing this library is equally uncomplicated together with painless equally installing MongoDB - actually a slice of cake.

ref: http://www.phpclasses.org/blog/post/118-Developing-scalable-PHP-applications-using-MongoDB.html


Sumber http://developer-paradize.blogspot.com

Comments

Popular posts from this blog

Removing The Index.Php File From Url Inward Codeigniter

What Are The Main Components of a Computer System

Delete Daily Doppler E-Mail Spam From An Iphone [Fix]