background preloader

MongoDB

Facebook Twitter

Admin UIs. MongoDB does not include a GUI-style administrative interface. Instead most administration is done from command line tools such as the mongo shell. However some UI’s are available as separate community projects and are listed below. Some are focused on administration, while some focus on data viewing. Third-Party Open-Source Tools Edda Edda is a log visualizer. It takes logs as input and creates a timeline of notable events in the set. Fang of Mongo Fang of Mongo is a web-based user interface for MongoDB build with django and jquery.

It will allow you to explore content of MongoDB with simple but (hopefully) pleasant user interface. Features: field name autocompletion in query builderdata loading indicatorhuman friendly collection statsdisabling collection windows when there is no collection selectedtwitter stream pluginmany more minor usability fixesworks well on recent chrome and firefox UMongo (formerly JMongoBrowser) UMongo is a GUI app that can browse and administer a MongoDB cluster. Migrating from Microsoft SQL Server to MongoDB - Lessons Learned. Migrating from Microsoft SQL Server to MongoDB - Lessons Learned Your database is one of your most important technical stakeholders and will influence every major decision you make during the lifetime of your product. Once you have made your choice and built on top of it, chances are that you would never consider migrating to a radically different solution. As difficult of a decision as it was, early this year we migrated all our data from Microsoft SQL Server, a traditional relational database, to MongoDB which is a “NoSQL” document-based database.

In this article I will share the challenges we faced and the lessons we have learned from this experience. Who are we? Wireclub is a vibrant online community with over 3 million users world-wide. Everyday we serve over a million database-intensive pageviews and service tens of millions of API calls. Who should read this article? Why did we migrate to MongoDB? Wireclub was born as a hobby and bootstrapped since its inception. Conclusion. Simple Service Bus / Message Queue with MongoDB | CaptainCodeman. A service bus or message queue allow producers and subscribers to communicate asynchronously so that a system can handle disconnects, processes being stopped and started or enable peaks of demand to be handled beyond what the subscriber can immediately cope with. The queue acts as a buffer that the producer writes to and the subscriber reads from. There are lots of implementations such as NServiceBus, MassTransit, Rhino Service Bus and the cloud-provided services such as Amazon’s Simple Queue Service and Window Azure’s AppFabric Service Bus.

Some take a little time to get started with and the cloud ones can also rack up charges pretty quickly if you are doing too much polling. Often, all that is needed is something fairly simple to buffer messages between processes and persist them. Now, I did have a look round first to see if anyone else had created something already and the closest I got was the post here: Why (and How) I Replaced Amazon SQS with MongoDB. Query Flags: AwaitData. Introduction to the new official C# Driver developed by 10gen. Logging with MongoDB and C# – Class design & CRUD. For the alpha version of the MongoDb Logger I will use three basic classes that satisfy my need of tracking actions, events and traffic within any common app.

This design starts with a base class from which every class made for logging derives. LogEntry.cs publicclassLogEntry { [BsonId(IdGenerator = typeof(CombGuidGenerator))]publicGuid Id { get; set; } The IdGenerator will produce a unique Id every time the Logger inserts a new entry in the database, the Guid type is required by the MongoDb C# Driver v1.0. The Date property provides the default value(DateTime.Now) even if my derived class will not implement explicit this property. Log specific classes Next comes the classes that describe the information I need to log: actions, events and traffic . Connect to MongoDb What I need next is a class that can connect to the MongoDb server, create a database named log and perform the four basic functions of persistent storage (Create, Read, Update and Delete). Logger.cs Insert record Login.aspx. CSharp Driver Tutorial. Introduction This tutorial introduces the officially supported C# Driver for MongoDB.

The C# Driver consists of two libraries: the BSON Library and the C# Driver. The BSON Library can be used independently of the C# Driver if desired. The C# Driver requires the BSON Library. You may also be interested in the C# Driver Serialization Tutorial. Downloading The C# Driver is available in source and binary form. The simplest way to get started is by using the nuget package. The source may be downloaded from github.com. We use msysgit as our Windows git client. To clone the repository run the following commands from a git bash shell: cd <parentdirectory> git config --global core.autocrlf true git clone cd mongo-csharp-driver git config core.autocrlf true You must set the global setting for core.autocrlf to true before cloning the repository.

Git config --global core.autocrlf false Building Running Unit Tests BsonUnitTestsDriverUnitTestsDriverUnitTestsVB. A MongoDB Tutorial using C# and ASP.NET MVC | Joe Stevens' Blog. In this post I’m going to create a simple ASP.NET MVC website for a simple blog that uses MongoDB and the offical 10gen C# driver. MongoDB is no NOSQL database that stores information as Binary JSON (BSON) in documents. I have been working with it now for around 6 months on an enterprise application and so far am loving it. Our application is currently in alpha phase but should be public early next year!

If you are used to working with an RDBMS, it takes a little bit of getting used to as generally you work with a denormalized schema. This means thinking about things quite differently to how you would previously; you’re going to have repeating data which is a no-no in a relational database, but it’s going to give you awesome performance, sure you may need an offline process that runs nightly and goes and cleans up your data, but for the real time performance gains it’s worth it. Download source Our reasons for choosing MongoDB were performance and scalability.

Now back to MVC.