最新文章专题视频专题问答1问答10问答100问答1000问答2000关键字专题1关键字专题50关键字专题500关键字专题1500TAG最新视频文章推荐1 推荐3 推荐5 推荐7 推荐9 推荐11 推荐13 推荐15 推荐17 推荐19 推荐21 推荐23 推荐25 推荐27 推荐29 推荐31 推荐33 推荐35 推荐37视频文章20视频文章30视频文章40视频文章50视频文章60 视频文章70视频文章80视频文章90视频文章100视频文章120视频文章140 视频2关键字专题关键字专题tag2tag3文章专题文章专题2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章专题3
当前位置: 首页 - 正文

MongoDB报告

来源:动视网 责编:小OO 时间:2025-10-03 00:35:16
文档

MongoDB报告

MongoDB报告概念官网上的描述是MongoDB是一个collection-oriented,schema-freedocument数据库.·Collection-oriented--指的是数据被有规律的集中在一起,每一个集合在数据库里有一个独一无二的名称,可以包含无数个文档.集合除了没有定义图表,它与关系型数据库里面的表类似.·Schema-free–指的是数据库不需要知道任何关于存放在集合里的文档的结构.所以你可以储存任何结构的文档在同一个集合里面.·Document–指的是储存数据是用
推荐度:
导读MongoDB报告概念官网上的描述是MongoDB是一个collection-oriented,schema-freedocument数据库.·Collection-oriented--指的是数据被有规律的集中在一起,每一个集合在数据库里有一个独一无二的名称,可以包含无数个文档.集合除了没有定义图表,它与关系型数据库里面的表类似.·Schema-free–指的是数据库不需要知道任何关于存放在集合里的文档的结构.所以你可以储存任何结构的文档在同一个集合里面.·Document–指的是储存数据是用
MongoDB报告

概念

官网上的描述是MongoDB是一个collection-oriented, schema-free document数据库.

·Collection-oriented -- 指的是数据被有规律的集中在一起,每一个集合在数据库里有一个独一无二的名称, 可以包含无数个文档. 集合除了没有定义图表, 它与关系型数据库里面的表类似.

·Schema-free – 指的是数据库不需要知道任何关于存放在集合里的文档的结构. 所以你可以储存任何结构的文档在同一个集合里面.

·Document – 指的是储存数据是用到key-value对, Keys是string类型, values可以是任何数据类型, 包括数组和文件. 我们称之为”BSON”(Binary Serialized dOcument Notation.)

目前使用MongoDB的应用已经有很多了(见附录). 例如sourceForge, justIn.tv等等, sourceForge中mongoDB被用作后端储存各种页面文件, 而justIn.tv则是一个分享视频的网站, mongoDB被应用到病毒扫描,用户功能,还有惯常做法解决不了问题.

MongoDB和CAP概念

·Availabbility: 每一个用户都一直可以读和写.

·Consistency: 所有的用户浏览一样的数据.

·Partition Tolerance: 系统工作在分散的物理网络上.

MongoDB的特点

·面向文档存储(类JSON数据模式简单而强大).

·动态查询 

· 全索引支持,扩展到内部对象和内嵌数组 

· 查询记录分析

·快速,就地更新

·高效存储二进制大对象 (比如照片和视频)

·复制和故障切换支持 

·Auto-Sharding自动分片支持云级扩展性

支持Linux、MacOS X、Windows和Solaris 

几乎所有编程语言中支持MongoDB。它有多种语言的驱动:C、C++、C# & .NET, ColdFusion、Erlang、Factor、Java、Javascript、PHP、Python、Ruby、Perl,等等

操作与可扩展性

从操作角度来讲,MongoDB可以根据应用程序的需要以两种模式来运行。第一种是“单主”(single master)模式,只有一台主服务器来处理所有的写操作。读操作能从中分离出去,通过任意数量的从服务器来进行读操作,这有利于提高读的可扩展性(使用场景:Sourceforge)。

对于那些写数据量很大或写频率过高,单台主服务器无法处理的应用程序,可以使用MongoDB的自动分片模式(正处于alpha阶段)。该模式下写操作会自动分配到任意数量的“片”中(一般是一台或一组MongoDB服务器),它们负责这部分数据集的写和读。

无论使用哪种模式,MongoDB都会采取“强一致性”方法(你可以把MongoDB看成CAP理论中的C-P系统)。高可用性是通过将数据复制到多个MongoDB节点来实现的,每个节点都能及时成为一个分片的主服务器——MongoDB会自动处理故障转移。这能让你在维持相当高的写可用性的同时,拥有强一致性特性,这对一些用例来说非常重要。

MongoDB实际操作

安装及启动服务:

1.解压:tar -xvf mongodb-linux-i686-1.4.4.tgz

2.为mongoDB创建数据目录:sudo mkdir -p /data/db/

3.设置/data/db访问权限:sudo chown '用户名' /data/db

4.启动mongoDB服务:cd mongodb-linux-i686-1.4.4/bin

5. ./mongod

操作数据库:

6.打开另一终端,并确保在mongoDB的bin目录:./mongo

   1.  超级用户相关:

         1. use admin

         2. #增加或修改用户密码

         3. db.addUser('name','pwd')

         4. #查看用户列表

         5. db.system.users.find()

         6. #用户认证

         7. db.auth('name','pwd')

         8. #删除用户

         9. db.removeUser('name')

        10. #查看所有用户

        11. show users

        12. #查看所有数据库

        13. show dbs

        14. #查看所有的collection

        use dbs

        15. show collections

        16. #查看各collection的状态

        17. db.printCollectionStats()

        18. #查看主从复制状态

        19. db.printReplicationInfo()

        20. #修复数据库

        21. db.repairDatabase()

        22. #设置记录profiling,0=off 1=slow 2=all

        23. db.setProfilingLevel(1)

        24. #查看profiling

        25. show profile

        26. #拷贝数据库

        27. db.copyDatabase('mail_addr','mail_addr_tmp')

        28. #删除collection

        29. db.mail_addr.drop()

        30. #删除当前的数据库

        31. db.dropDatabase()

   2. 客户端连接

        

   3. 增删改

         1. #存储嵌套的对象

         2. db.foo.save({'name':'ysz','address':{'city':'beijing','post':100096},'phone':[138,139]})

         3. #存储数组对象

         4. db.user_addr.save({'Uid':'yushunzhi@sohu.com','Al':['test-1@sohu.com','test-2@sohu.com']})

         5. #根据query条件修改,如果不存在则插入,允许修改多条记录

         6. db.foo.update({'yy':5},{'$set':{'xx':2}},upsert=true,multi=true)

         7. #删除yy=5的记录

         8. db.foo.remove({'yy':5})

         9. #删除所有的记录

        10. db.foo.remove()

   4. 索引

         1. #增加索引:1(ascending),-1(descending)

         2. db.foo.ensureIndex({firstname: 1, lastname: 1}, {unique: true});

         3. #索引子对象

         4. db.user_addr.ensureIndex({'Al.Em': 1})

         5. #查看索引信息

         6. db.foo.getIndexes()

         7. db.foo.getIndexKeys()

         8. #根据索引名删除索引

         9. db.user_addr.dropIndex('Al.Em_1')

   5. 查询

         1. #查找所有

         2. db.foo.find()

         3. #查找一条记录

         4. db.foo.findOne()

         5. #根据条件检索10条记录

         6. db.foo.find({'msg':'Hello 1'}).limit(10)

         7. #sort排序

         8. db.deliver_status.find({'From':'ixigua@sina.com'}).sort({'Dt',-1})

         9. db.deliver_status.find().sort({'Ct':-1}).limit(1)

        10. #count操作

        11. db.user_addr.count()

        12. #distinct操作,查询指定列,去重复

        13. db.foo.distinct('msg')

        14. #>操作

        15. db.foo.find({"timestamp": {"$gte" : 2}})

        16. #子对象的查找

        17. db.foo.find({'address.city':'beijing'})

   6. 管理

         1. #查看collection数据的大小

         2. db.deliver_status.dataSize()

         3. #查看colleciont状态

         4. db.deliver_status.stats()

         5. #查询所有索引的大小

         6. db.deliver_status.totalIndexSize()

附录

1. MongoDB应用

CompanyUse Case 
Shutterfly is an Internet-based social expression and personal publishing service. MongoDB is used for various persistent data storage requirements within Shutterfly. MongoDB helps Shutterfly build an unrivaled service that enables deeper, more personal relationships between customers and those who matter most in their lives. For more information, view Kenny Gorman's presentation Implementing MongoDB at Shutterfly from MongoSF (April 2010): Slides and Video.

Foursquare is a location based social network that incorporates gaming elements. 

MongoDB at foursquare presentation: Slides and Video (May 2010) 

bit.ly allows users to shorten, share, and track links. bit.ly uses MongoDB to store user history. For more information: 

bit.ly user history, auto-sharded presentation at MongoNYC (May 2010) 

MongoDB is used for back-end storage on the SourceForge front pages, project pages, and download pages for all projects. 

Scaling SourceForge with MongoDB - OSCON Presentation (July 2010) 

How Python, TurboGears, and MongoDB are Transforming SourceForge.net - PyCon (February 2010) 

SourceForge.net releases Ming - SourceForge blog (December 2009) 

TurboGears on Sourceforge - Compound Thinking (July 2009) 

Etsy is a website that allows users to buy and sell handmade items. Read the MongoDB at Etsy blog series: 

Part 1 - May 19, 2010 

Part 2 - July 3, 2010 

The New York Times is using MongoDB in a form-building application for photo submissions. Mongo's lack of schema gives producers the ability to define any combination of custom form fields. For more information: 

Building a Better Submission Form - NYTimes Open Blog (May 25, 2010) 

A Behind the Scenes Look at the New York Times Moment in Time Project - Hacks/Hackers Blog (July 28, 2010) 

BoxedIce's server monitoring solution - Server Density - stores 600 million+ documents in MongoDB. 

BoxedIce blog posts: 

Automating partitioning, sharding and failover with MongoDB 

Why we migrated from mysql to mongodb 

Notes from a production deployment 

Humongous Data at Server Density: Approaching 1 Billion Documents in MongoDB 

Presentations: 

Humongous Data at Server Density - MongoUK Presentation (June 2010) 

MongoDB in Production at Boxed Ice - Webinar (May 2010) 

Wordnik stores its entire text corpus in MongoDB - 1.2TB of data in over 5 billion records. The speed to query the corpus was cut to 1/4 the time it took prior to migrating to MongoDB. More about MongoDB at Wordnik: 

B is for Billion - Wordnik Blog (July 2010) 

MongoDB: Migration from Mysql at Wordnik - Scalable Web Architectures (May 2010) 

Tony Tam's Presentation at MongoSF (April 2010) 

What has technology done for words lately? - Wordnik blog (February 2010) 

ShareThis makes it easy to share ideas and get to the good stuff online. ShareThis is the world’s largest sharing network reaching over 400 million users across 150,000 sites and 785,000 domains across the web

Business Insider has been using MongoDB since the beginning of 2008. All of the site's data, including posts, comments, and even the images, are stored on MongoDB. For more information: 

How This Web Site Uses MongoDB (November 2009 Article) 

How Business Insider Uses MongoDB (May 2010 Presentation) 

GitHub, the social coding site, is using MongoDB for an internal reporting application. 

Gilt Groupe is an invitation only luxury shopping site. Gilt uses MongoDB for real time ecommerce analytics. 

Gilt CTO Mike Bryzek's presentation at MongoSF in April 2010. 

Hummingbird - a real-time web traffic visualization tool developed by Gilt and powered by MongoDB 

CollegeHumor is a comedy website. MongoDB is used in CollegeHumor for internal analytics and link exchange application.

Evite uses MongoDB for analytics and quick reporting. 

Tracking and visualizing mail logs with MongoDB and gviz_api - Grig Gheorghiu's blog (July 2010) 

Disqus is an innovative blog-commenting system. 

MongoHQ provides a hosting platform for MongoDB and also uses MongoDB as the back-end for its service. Our hosting centers page provides more information about MongoHQ and other MongoDB hosting options. 

Justin.tv is the easy, fun, and fast way to share live video online. MongoDB powers Justin.tv's internal analytics tools for virality, user retention, and general usage stats that out-of-the-box solutions can't provide. Read more about Justin.tv's broadcasting architecture. 

Chartbeat is a revolutionary real-time analytics service that enables people to understand emergent behaviour in real-time and exploit or mitigate it. Chartbeat stores all historical analytics data in MongoDB. 

The Secret Weapons Behind Chartbeat - Kushal's coding blog (April 2010) 

Kushal Dave's Presentation at MongoNYC (May 2010) 

Hot Potato is a social tool that organizes conversations around events. For more information: 

Hot Potato's presentation about using Scala and MongoDB at the New York Tech Talks Meetup (March 2010) 

Hot Potato presentation at MongoSF (April 2010) 

Hot Potato Infrastructure from Hot Potato blog (May 2010) 

Hot Potato presentation at MongoNYC (May 2010) 

Eventbrite gives you all the online tools you need to bring people together for an event and sell tickets. EventBrite uses MongoDB to track page views. 

Why you should track page views with MongoDB - EventBrite Blog (June 2010) 

Flowdock is a modern web-based team messenger, that helps your team to become more organized simply by chatting. Flowdock backend uses MongoDB to store all messages. 

Why Flowdock migrated from Cassandra to MongoDB - Flowdock Blog (July 2010) 

Sugar CRM uses MongoDB to power the backend of its preview feedback mechanism. It captures users' comments and whether they like or dislike portions of the application all from within beta versions of Sugar.

PhoneTag is a service that automatically transcribes voicemail to text and delivers it in real-time via e-mail and SMS. PhoneTag stores the metadata and transcriptions for every voicemail it process in MongoDB. 

Harmony is a powerful web-based platform for creating and managing websites. It helps developers with content editors work together with unprecedented flexibility and simplicity. From stylesheets, images and templates, to pages, blogs, and comments, every piece of Harmony data is stored in MongoDB. Switching to MongoDB from MySQL drastically simplified Harmony's data model and increased the speed at which we can deliver features. 

Steve Smith's presentation about Harmony at MongoSF (April 2010) 

Hashrocket is an expert web design and development group. Hashrocket built PharmMD, a fully-featured Medication Management application in Ruby on Rails. The system contains functionality for identifying and resolving drug-related problems for millions of patients. 

Yottaa offers Performance Analytics, a cloud service that monitors, ranks and analyzes the performance of millions of web sites, providing an open database to answer questions such as “why performance matters” and “how fast is my site”. Yottaa is using Ruby on Rails and MongoDB to build their scalable analytics engine. 

Scalable Event Analytics with MongoDB and Ruby - Jared Rosoff's presentation at RubyConfChina (June 2010) 

BuzzFeed is a trends aggregator that uses a web crawler and human editors to find and link to popular stories around the web. BuzzFeed moved an analytics system tracking over 400 million monthly events from MySQL to MongoDB. 

The Mozilla open-source Ubiquity Herd project uses MongoDB for back-end storage.  Source code is available on bitbucket. 

Codaset is an open system where you can browse and search through open source projects, and check out what your friends are coding. 

The awesomeness that is MongoDB and NoSQL, is taking over Codaset - Codaset Blog (May 2010) 

Handling Dates in MongoDB - Codaset Blog (July 2010) 

Shopwiki uses Mongo as a data store for its shopping search engine, where they commit all the data generated, such as custom analytics. Mongo's performance is such that ShopWiki uses it in cases where MySQL would just not be practical. ShopWiki is also using it as a storage engine for all R&D and data-mining efforts where MongoDB's document oriented architecture offers maximum flexibility. 

Avery's Talk at MongoNYC - ShopWiki Dev Blog (June 2010) 

MyPunchbowl.com is a start to finish party planning site that uses MongoDB for tracking user behavior and datamining. 

Ryan Angilly on Replacing MySQL with MongoDB (Zero to Mongo) on The Bitsource 

MongoDB for Dummies: How MyPunchbowl went from 0 to production in under 3 days - Presentation at MongoNYC (May 2010) 

Sunlight Labs is a community of open source developers and designers dedicated to opening up our government to make it more transparent, accountable and responsible. MongoDB powers the National Data Catalog, and the Drumbone API, which is an aggregator of data about members of Congress. 

Civic Hacking - Video from Luigi Montanez's presentation at MongoNYC (May 2010) 

How We Use MongoDB at Sunlight blog post (May 2010) 

photostre.am streams image data from flickr and uses MongoDB as it's only database. 

MongoDB in Production at photostre.am - photostre.am blog (June 2010) 

Fotopedia uses MongoDB as storage backend for its copy of wikipedia data, storage for users and albums timelines, a feature that is currently under heavy refactoring, and as the "metacache", an index of every tiny html fragment in its varnish cache for proactive invalidation of stale content. 

MongoDB: Our Swiss Army Datastore - Presentation at MongoFR in June 2010: Slides and Video 

Stickybits is a fun and social way to attach digital content to real world objects. 

MongoDB is being used for the game feeds component. It caches game data from different sources which gets served to ea.com, rupture.com and the EA download manager. 

Struq develops technology that personalises the contents and design of online display advertising in real time. 

Pitchfork is using MongoDB for their year-end readers survey and internal analytics. 

Floxee, a web toolkit for creating Twitter directories, leverages MongoDB for back-end storage. The award-winning TweetCongress is powered by Floxee. 

Sailthru is an email service provider that uses MongoDB for click-stream analysis and reporting. 

Silentale keeps track of your contacts and conversations from multiple platforms and allows you to search and access them from anywhere. Silentale is using MongoDB as the back-end for indexing and searching on millions of stored messages of different types.  More details on Silentale can be found in this TechCrunch article. 

One Year with MongoDB presentation from MongoUK (June 2010): Slides and Video 

TeachStreet helps people find local and online classes by empowering teachers with robust tools to manage their teaching businesses. MongoDB powers our real-time analytics system which provide teachers with insight into the performance and effectiveness of their listings on TeachStreet. 

Slides from Mongo Seattle - TeachStreet blog (July 2010) 

Defensio is a comment-spam blocker that uses MongoDB for back-end storage. 

TweetSaver is a web service for backing up, searching, and tagging your tweets. TweetSaver uses MongoDB for back-end storage. 

Bloom Digital's AdGear platform is a next-generation ad platform. MongoDB is used for back-end reporting storage for AdGear. 

KLATU Networks designs, develops and markets asset monitoring solutions which helps companies manage risk, reduce operating costs and streamline operations through proactive management of the status, condition, and location of cold storage assets and other mission critical equipment. KLATU uses MongoDB to store temperature, location, and other measurement data for large wireless sensor networks. KLATU chose MongoDB over competitors for scalability and query capabilities. 

songkick lets you track your favorite artists so you never miss a gig again. 

Speeding up your Rails app with MongoDB - Presentation at MongoUK (June 2010) 

Detexify is a cool application to find LaTeX symbols easily. It uses MongoDB for back-end storage. Check out the blog post for more on why Detexfy is using MongoDB. 

http://sluggy.com/ is built on MongoDB, mongodb_beaker, and MongoKit. 

From MySQL to MongoDB at Sluggy.com - Brendan McAdams' presentation at MongoNYC (May 2010) 

Stylesignal is using MongoDB to store opinions from social media, blogs, forums and other sources to use in their sentiment analysis system, Zeitgeist. 

 @trackmeet helps you take notes with , and is built on MongoDB 
eFlyoverleverages the Google Earth Browser Plugin and MongoDB to provide interactive flyover tours of over two thousand golf courses worldwide. 

Shapado is a multi-topic question and answer site in the style of Stack Overflow.  Shapado is written in Rails and uses MongoDB for back-end storage. 

Sifino enables students to help each other with their studies.  Students can share notes, course summaries, and old exams, and can also ask and respond to questions about particular courses. 

GameChanger provides mobile apps that replace pencil-and-paper scorekeeping and online tools that distribute real-time game updates for amateur sports. 

Tornado, MongoDB, and the Realtime Web - Kiril Savino's presentation at MongoNYC (May 2010) 

soliMAP is a map-based ad listings site that uses MongoDB for storage. 

MyBankTracker iPhone App uses MongoDB for the iPhone app's back-end server. 

BillMonitor uses MongoDB to store all user data, including large amounts of billing information. This is used by the live site and also by BillMonitor's internal data analysis tools. 

Tubricator allows you to create easy to remember links to  videos. It's built on MongoDB and Django. 

Mu.ly uses MongoDB for user registration and as a backend server for its iPhone Push notification service. MongoDB is mu.ly's Main backend database and absolute mission critical for mu.ly. 

Avinu is a Content Management System (CMS) built on the Vork enterprise framework and powered by MongoDB. 

edelight is a social shopping portal for product recommendations. 

Topsy is a search engine powered by Tweets that uses Mongo for realtime log processing and analysis. 

Codepeek is using MongoDB and GridFS for storing pastes. 

Similaria.pl is an online platform, created to connect users with people and products that match them. 

ToTuTam uses Mongo to store information about events in its portal and also to store and organise information about users preferences. 

themoviedb.org is a free, user driven movie database that uses MongoDB as its primary database.

OCW Search is a search engine for OpenCourseWare. It stores all the course materials in MongoDB and uses Sphinx to index these courses. 

Full Text Search with Sphinx - Presentation from MongoUK (June 2010) 

Mixero is the new generation Twitter client for people who value their time and are tired of information noise. Mixero uses Mongo to store users' preferences and data.

Biggo is an advanced site constructor with e-commerce modules. Biggo uses MongoDB for stats collection.

Kabisa is a web development firm specializing in Ruby on Rails and Java / J2EE. Kabisa uses MongoDB for many of its client projects, including a mobile news application for iPhone and Android.

DokDok makes it easy and automatic for users to find, work on and share the latest version of any document - right from their inbox. DokDok migrated to a Mongo backend in August 2009. See Bruno Morency's presentation Migrating to MongoDB for more information.

Enbil is a swedish website for finding, and comparing, rental cars. MongoDB is used for storing and querying data about geographical locations and car rental stations.

Websko is a content management system designed for individual Web developers and cooperative teams. MongoDB's lack of schema gives unlimited possibilities for defining manageable document oriented architecture and is used for back-end storage for all manageable structure and data content. Websko is written in Rails, uses MongoMapper gem and in-house crafted libraries for dealing with Mongo internals.

markitfor.me is a bookmarking service that makes your bookmarks available via full-text search so you don't have to remember tags or folders. You can just search for what you're looking for and the complete text of all of your bookmarked pages will be searched. MongoDB is used as the datastore for the marked pages.

Backpage Pics is a website that displays backpage.com adult classified listings as an image gallery. MongoDB is used to store listing data. Please note that this website is NSFW.

Joomla Ads uses MongoDB for its back-end reporting services.

musweet keeps track of what artists and bands publish on the social web.

Eiwa System Management, Inc. is a software development firm that has been using MongoDB for various projects since January 2010.

Morango is an internet strategy consultancy based in London, which uses MongoDB in production on several client projects. 

Building a Content Management System with MongoDB - Presentation from MongoUK (June 2010) 

PeerPong discovers everyone's expertise and connects you to the best person to answer any question. We index users across the entire web, looking at public profiles, real-time streams, and other publicly available information to discover expertise and to find the best person to answer any question.

ibibo ("I build, I bond") is a social network using MongoDB for its dashboard feeds. Each feed is represented as a single document containing an average of 1000 entries; the site currently stores over two million of these documents in MongoDB.

MediaMath is the leader in the new and rapidly growing world of digital media trading.

Zoofs is a new way to discover  videos that people are talking about on Twitter. Zoofs camps in Twitter searching for tweets with  video links, and then ranks them based on popularity. 

Oodle is an online classifieds marketplace that serves up more than 15 million visits a month and is the company behind the popular  Marketplace. Oodle is using Mongo for storing user profile data for our millions of users and has also open sourced its Mongo ORM layer. 

Funadvice relaunched using the MongoDB and MongoMapper. Read the Funadvice CTO's post to MongoDB User Forum from May 2010 for more details. 

Ya Sabe is using MongoDB for the backend storage of business listings. Yasabe.com is the first local search engine built for Hispanics in the US with advanced search functionality. You can find and discover more than 14 million businesses via the web or your mobile phone. All the information is in both Spanish and in English. 

LoteriaFutbol.com is a Fantasy Soccer Portal recently launched for the World Soccer Cup: South Africa 2010. Mongo has been used entirely to store data about users, groups, news, tournaments and picks. It uses the PHP driver with a Mongo module for Kohana v3 (Mango).

Kehalim switched over to MongoDB 1 year ago after exhausting other cloud and relational options. As a contextual affiliate network, Kehalim stores all of its advertisers, ads and even impressions on top of MongoDB. MongoDB has outed both MySQL and memcached completely and also provides great hadoop-like alternative with its own map-reduce.

Squarespace is an innovative web publishing platform that consists of a fully hosted and managed GUI environment for creating and maintaining websites. Squarespace's new social modules utilize Mongo to store large amounts of social data that is pulled in from around the Internet and displayed in native widgets that are fully integrated with the platform.

Givemebeats.net is an e-commerce music site that allows people to buy beats (music instrumentals) produced by some of the best producers in the world. Now we entirely use MongoDB to store users profile, beats information, and transaction statistics.

Cheméo, a search engine for chemical properties, is built on top of MongoDB. For a fairly extensive explanation of the tools and software used and some MongoDB tips, please go to chemeo.com/doc/technology. 

Planetaki is place were you can read all your favourite websites in one place. MongoDB has replaced MySQL for the storage backend that does all the heavy lifting and caching of each website's news feed. 

Planetaki Powered by MongoDB - SamLown.com (June 2010) 

[ChinaVisual.com] is the leading and largest vertical portal and community for creative people in China. ChinaVisual.com moved from mysql to mongoDB in early 2009. Currently MongoDB powers its most major production and service, like file storage, session server, and user tracking. 

RowFeeder is an easy social media monitoring solution that allows people to track tweets and  posts in a spreadsheet. RowFeeder uses MongoDB to keep up with the high volume of status updates across multiple social networks as well as generate basic stats. 

MongoDB for Real Time Data Collection and Stats Generation - Presentation at Mongo Seattle (July 2010) 

Mini Medical Record is designed to facilitate medical care for all members of the public. While useful for everyone, it is especially useful for travelers, professional road warriors, homeless, substance dependent, and other members of the public who receive care through multiple medical systems. 

Open Dining Network is a restaurant data and food ordering platform that provides a RESTful API to take web and mobile orders. MongoDB is used to manage all restaurant, customer, and order information. 

URLi.st is a small web application to create and share list of links. The web application is coded in Python (using the pylons framework) and uses MongoDB (with pymongo 1.6) in production to power its data layer. 

Pinterest is a community to share collections of things you love. Pinterest is built in Python and uses MongoDB for its internal analytics tools and huge data sets like contacts imported from gmail and yahoo. 

LearnBoost is a free and amazing gradebook web app that leverages MongoDB for its data storage needs. LearnBoost is the creator of Mongoose, a JavaScript async ORM for MongoDB that is flexible, extensible and simple to use. 

Mongoose - LearnBoost blog (May 2010) 

Kidiso is a safe online playground for children up to 13, with advanced parental controls. In the current setup, we are using MongoDB for logging, analysis tasks, and background jobs that aggregate data for performance (ie search results and allowed content). 

Carbon Calculated provides an open platform that aggregates carbon and green house gas emissions for everything in the world, from passenger transport, raw materials, through to consumer goods. Built on top of this platform, Carbon Calculated offers a suite of products that make carbon calculation accessible and intuitive. 

Vowch is a simple platform for telling the world about all the people, places and things that matter most to you. It is a platform for making positive, public endorsements for anyone or anything from a Twitter account. 

View a vowch for MongoDB: http://vow.ch/2ij 

HolaDoctor.com is the most comprehensive health and wellness portal available in Spanish for the global online Hispanic community. MongoDB is being used to store all the content for the site, including GridFS to store article images. Session data is also being persisted on our MongoDB cluster using a custom PHP save handler. 

Ros Spending is the first Russian public spending monitoring project. It includes information about 1,400,000 federal government and 210,000 regional government contracts, as well as information about more than 260,000 suppliers and 26,000 customers. MongoDB stores all reports, customer and supplier information, stats and pre-cached queries. The project was initiated by the Institute of Contemporary Development and launched publicly in July 2010 during the Tver economic forum. 

BlueSpark designs and develops iPhone and iPad applications and specializes in Adobe Flash development, we have a passion for creating great user experiences and products that feel simple to use. 

[Aghora] is a time attendance application specially designed for the requirements of the Brasilian governmental requirements. Our whole application is based on PHP and MongoDB. Click here for more information.

Man of the House is the real man's magazine, a guide for the jack of all trades trying to be better – at work and at home, as a father and as a husband. The entire backend of the site depends on MongoDB.

PeerIndex is an algorithmic authority ranking web service that uses MongoDB to scale processing of the firehose of social media, as a distributed data store and middle cache for fast site performance.

sahibinden.com is an online classifieds marketplace that serves more than 14.5 million unique visitors and over 1.5 billion pageviews a month. sahibinden.com is using MongoDB for storing classifieds data and caching.

2.网上搜索到的一些MongoDB测试结果

性能测试(写) 

插入100000条数据,花费时间3秒

性能测试(读) 

读取100000条数据,花费时间2秒

网上的一些测试结果

记录很少的时候每秒写入5000条左右

记录很少的时候基于索引的搜索每秒2000条左右

数据很少的时候读每秒1400条

数据很少的时候4M数据获取大概237毫秒

数据很少的时候搜索对写入影响不大

数据很少的时候读写相互影响不大

数据很多的时候

写入速度下降一半

读取速度没区别

搜索慢了很多,千万数据下查询1000条数据花费200毫秒左右,2个字段

读取对写入影响还是不大

查询对写入影响很大

 

另不管数据量多少CPU始终在10%以下,内存随着数据量增多从20% - 80%

文档

MongoDB报告

MongoDB报告概念官网上的描述是MongoDB是一个collection-oriented,schema-freedocument数据库.·Collection-oriented--指的是数据被有规律的集中在一起,每一个集合在数据库里有一个独一无二的名称,可以包含无数个文档.集合除了没有定义图表,它与关系型数据库里面的表类似.·Schema-free–指的是数据库不需要知道任何关于存放在集合里的文档的结构.所以你可以储存任何结构的文档在同一个集合里面.·Document–指的是储存数据是用
推荐度:
  • 热门焦点

最新推荐

猜你喜欢

热门推荐

专题
Top