Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

why the use of an ORM with NoSql (like MongoDB) [closed]

sorry, but does this make sense? the ORM means: Object Relational Mapper, and here, there is Relational, and NoSql is not RDBMS! so why the use of an ORM in a NoSql solution? because i see updates of ORMs for Python!

like image 727
Abdelouahab Avatar asked Nov 08 '11 14:11

Abdelouahab


1 Answers

Firstly, they are not ORM (since they don't have any relations among them), they are ODM (Object Document Mapper)

Main usage of these ODM frameworks here same as the some common feature of ORM, thus

  • providing the abstraction over your data model. you can have your data modelled in your application irrespective of the target software.
  • Most ODM's build to leverage the existing language features and use the familiar pattern to manipulate data instead to learn new language syntax's of the new software.

When i use mongoid (Ruby ODM for mongo), i can query mongo the way i do it in active model (mostly).

Since they don't have the relation among them, these ODM's provide the way to define the relations in your models and simulate the relationships. These are all abstracted from the developer so they can code the same way they do with the relational data.

like image 99
RameshVel Avatar answered Sep 30 '22 20:09

RameshVel