官术网_书友最值得收藏!

Modeling objects without SQL

A classic paradox in object oriented programming (OOP) code that requires database access is caused by the two-dimensional architecture of the traditional RDBMS. The two dimensions, rows and columns, are in turn grouped into tables, much like a legacy spreadsheet. In order to achieve the third dimension one needs to perform resource intensive joins and form relationships between tables. In order to map programming object classes to the database, incredible programmatic gymnastics are required to achieve the goal.

With MongoDB, there is no rigid database schema you must adhere to. Instead of rows you insert documents. A set of documents is referred to as a collection. Each document can directly model an object class, which in turn greatly facilitates the work of storing and retrieving from the database.

MongoDB has its own rich query language, which can perform tasks similar to what the developer might expect from a legacy RDBMS using SQL. Because MongoDB does not use SQL, it is often referred to as a NoSQL database.

For an excellent introduction to NoSQL, its underlying philosophy and its ramifications, a highly recommended resource can be found in the NoSQL Guide ( https://martinfowler.com/nosql.html) on Martin Fowler's website.
主站蜘蛛池模板: 建水县| 尚志市| 建湖县| 朝阳县| 玛曲县| 淮北市| 新干县| 南充市| 沙雅县| 杭锦旗| 淮安市| 泰来县| 嵊泗县| 浦江县| 巍山| 安宁市| 浦北县| 阳西县| 潍坊市| 扶余县| 磐安县| 鸡西市| 漾濞| 鹤壁市| 余姚市| 甘谷县| 平罗县| 湘乡市| 深泽县| 锡林郭勒盟| 灯塔市| 平山县| 和静县| 沂源县| 永清县| 汝阳县| 玉门市| 稷山县| 五华县| 灵武市| 康平县|