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

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.
主站蜘蛛池模板: 云南省| 辽中县| 南宁市| 东乌| 绥德县| 孟州市| 疏附县| 麦盖提县| 蕉岭县| 伊宁市| 南昌市| 海南省| 洛浦县| 法库县| 福贡县| 玉龙| 资兴市| 潮安县| 木兰县| 洛南县| 灌阳县| 洛宁县| 大埔区| 佛冈县| 蛟河市| 临安市| 牟定县| 定州市| 永城市| 台湾省| 东方市| 临漳县| 岱山县| 婺源县| 宁晋县| 保山市| 四川省| 大新县| 黄浦区| 庆元县| 荥经县|