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

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.
主站蜘蛛池模板: 海兴县| 麻栗坡县| 乌拉特中旗| 桂阳县| 普兰县| 东台市| 开鲁县| 奉化市| 馆陶县| 全州县| 金平| 始兴县| 博客| 江陵县| 兴海县| 和龙市| 华池县| 犍为县| 洪洞县| 罗山县| 岑巩县| 永年县| 奉贤区| 台东县| 东乌珠穆沁旗| 沾益县| 耒阳市| 新丰县| 乐陵市| 炉霍县| 布尔津县| 峨边| 都江堰市| 大足县| 苍梧县| 当涂县| 福安市| 襄樊市| 台东县| 渝中区| 兴文县|