【MongoDB】应用场景

摘要:
contentmanagement内存管理commentstorage,management,voting评论存储,管理和投票userregistration,profile,sessiondata用户注册、简介、session数据Projectsusingiterative/agiledevelopmentmethodologies.Mongo'sBSONdataformatmakesitveryeasytostoreandretrievedatainadocument-style/"schemaless"format.Additionofnewpropertiestoexistingobjectsiseasyanddoesnotgenerallyrequireblocking"ALTERTABLE"styleoperations.项目采用迭代或者极限开发方式。MongoDB的BSON数据格式使存储和接收数据简单。Real-timestats/analytics实时状态分析24.2不适合场景Systemswithaheavyemphasisoncomplextransactionssuchasbankingsystemsandaccounting.Thesesystemstypicallyrequiremulti-objecttransactions,whichMongoDBdoesn'tsupport.It'sworthnotingthat,unlikemany"NoSQL"solutions,MongoDBdoessupportatomicoperationsonsingledocuments.Asdocumentscanberichentities;formanyusecases,thisissufficient.需要复杂的事务支持的系统如银行系统,借贷系统等。值得注意的是,跟其他的NOSQL解决方法不同的是,MongoDB支持单文档的原子操作。由于文档能成为实体,对许多场景来说,这已足够了。TraditionalNon-RealtimeDataWarehousing.Traditionalrelationaldatawarehousesandvariantsarewellsuitedforcertainbusinessintelligenceproblems–especiallyifyouneedSQLtouseclienttoolswiththedatabase.Forcaseswheretheanalyticsarerealtime,thedataverycomplicatedtomodelinrelationa,orwherethedatavolumeishuge,MongoDBmaybeafit.传统的非实时的数据仓库。传统或者变种的关系型数据仓库非常适合于某些商业智能问题。

24 Use Cases
24.1 适合场景
 Archiving and event logging
 归档和日志记录
 Document and Content Management Systems - as a document-oriented (JSON) database, MongoDB's flexible schemas are a good fit for this.
 文档和内存管理系统-作为面向文档数据库,mongodb的灵活的结构正适合这个
 ECommerce. Several sites are using MongoDB as the core of their ecommerce infrastructure (often in combination with an RDBMS for the final order processing and accounting).
 电子商务,采用mongoDB作为电子商务网站基础设施(通常联合关系型数据库处理订单流程和财务流程)
 Gaming. High performance small read/writes are a good fit for MongoDB; also for certain games geospatial indexes can be helpful.
 游戏.高性能的读/写正适合mongodb;而且对某些游戏来说,地理信息的索引也非常有用
 High volume problems. Problems where a traditional DBMS might be too expensive for the data in question. In many cases developers would traditionally write custom code to a filesystem instead using flat files or other methodologies.
 高容量问题.这种问题对关系型数据库来说花费很大,许多情况,开发者通常写入到文件系统
 Mobile. Specifically, the server-side infrastructure of mobile systems. Geospatial key here.
 移动通信.特别的,手机通信服务端的基础建设,比如地理空间信息
 Operational data store of a web site MongoDB is very good at real-time inserts, updates, and queries. Scalability and replication are provided which are necessary functions for large web sites' real-time data stores. Specific web use case examples:
 运营网站,mongoDB非常适合实时的插入更新和查询。可伸缩性和复制提供大型网站的实时数据的存储提供了保障。
 content management内存管理
 comment storage, management, voting 评论存储,管理和投票
 user registration, profile, session data 用户注册、简介、session数据
 Projects using iterative/agile development methodologies. Mongo's BSON data format makes it very easy to store and retrieve data in a document-style / "schemaless" format. Addition of new properties to existing objects is easy and does not generally require blocking "ALTER TABLE" style operations.
 项目采用迭代或者极限开发方式。MongoDB的BSON数据格式使存储和接收数据简单。
 Real-time stats/analytics
 实时状态分析
24.2 不适合场景
 Systems with a heavy emphasis on complex transactions such as banking systems and accounting. These systems typically require multi-object transactions, which MongoDB doesn't support. It's worth noting that, unlike many "NoSQL" solutions, MongoDB does support atomic operations on single documents. As documents can be rich entities; for many use cases, this is sufficient.
 需要复杂的事务支持的系统如银行系统,借贷系统等。这些系统需要多对象的事务,但是mongoDB不支持。值得注意的是,跟其他的NOSQL解决方法不同的是,MongoDB支持单文档的原子操作。由于文档能成为实体,对许多场景来说,这已足够了。
 Traditional Non-Realtime Data Warehousing. Traditional relational data warehouses and variants (columnar relational) are well suited for certain business intelligence problems – especially if you need SQL (see below) to use client tools (e.g. MicroStrategy) with the database. For cases where the analytics are realtime, the data very complicated to model in relationa, or where the data volume is huge, MongoDB may be a fit.
 传统的非实时的数据仓库。传统或者变种的关系型数据仓库非常适合于某些商业智能问题。特别是当你需要使用客户端工具操作数据库SQL的时候。当需要实时分析时,而且相对于关系型数据库数据模型复杂,或者数据容量很大,mongoDB非常实时
 Problems requiring SQL.
 需要SQL解决的问题。

http://www.ituring.com.cn/article/62919

免责声明:文章转载自《【MongoDB】应用场景》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇RTEMS 进程切换分析(基于i386体系)C#双面打印解决方法(打印wordexcel图片)下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

mongodb的增、删、改、插的一个实例

创建一个学生信息表(至少包含:姓名,性别,成绩,年龄) 1、写入十五条不同的数据 db.students.insertMany([{ name: "bob", age: 16, sex: "male", grade: 95},{ name: "ahn", age: 18, sex: "female", grade: 45},{ name: "xi", ag...

mongodb.conf配置文件详解

到处找的弄一起。。 找不到谁原创了,如果看到call,我添加上去 启动MongoDB有2种方式,一是直接指定配置参数,二是指定配置文件。这里先介绍配置文件,启动方式如下:     1.mongod --config /etc/mongodb.conf     配置如下:     verbose:日志信息冗余。默认false。提高内部报告标准输出或记录到lo...

mongoDB 入门手册

MongoDB - 简介 官网:https://www.mongodb.com/ MongoDB 是一个基于分布式文件存储的数据库,由 C++ 语言编写,旨在为 WEB 应用提供可扩展的高性能数据存储解决方案。 MongoDB 是一个介于关系数据库和非关系数据库之间的产品,是非关系数据库当中功能最丰富,最像关系数据库的。     MongoDB...

mongodb 操作 Date字段类型 mongodb shell api

一,环境 php 7.2 + thinkphp 5 mongodb 3.4 二,针对Date字段的操作 mongodb shell: 写入: db.students3.insert([ { "_id" : 1, "tests" : [ 95, 92, 90 ], "lastUpdate" : ISODate("2019-01-01T00:00:00Z")...

Mongodb到mysql数据库的数据迁移(Java,Windows)

运行环境为windows 测试过260万的数据表,迁移大概要10分钟左右,当然肯定和网络,字段大小什么的有关系。 遇到的坑和注意点都用紫色标记了 PS:第一次写这么长的东西 一、Mongodb导出命令mongoexport 本地安装Mongodb,在安装目录的/bin下按住shift并右键“在此处打开命令窗口”,可执行以下语句进行导出。 mongoexpo...

vue实战(4):postman测试数据、封装ajax、使用vuex管理状态

书到用时方恨少 这个阶段涉及到了vuex,本来想着不慌,用起来,使用的过程中问题还真不少 本篇涉及到的内容: ---postman 测试数据 ---封装 ajax 请求函数 ---封装接口请求函数 ---使用 vuex 管理状态 ---获取首页相关数据 0. 其它 vue实战(1):准备与资料整理vue实战(2):初始化项目、搭建底部导航路由vue实战...