mongodb

Flexible Persistence Layer

I am designing an ASP.NET MVC 2 application. Currently I am leveraging Entity Framework 4 with switchable SQLServer and MySQL datastores. A requirement recently surfaced for the application to allow user-defined models/entities to be manipulated. Now I'm unsure if a SQL/relational database is appropriate at all; instead of adding/removi...

What are some real use cases for going with a NoSQL Document Store db?

I have been reading documentation and watching screencasts specific to Mongo DB over the past few days and I am at a loss for when a solution like this would be better than a typical pg or mysql environment. Specifically, my question is under what circumstance (w/ use case would be nice) would you want to go the nosql route? Thanks! ...

Simple way to storing data from multiple processes

I have a Python script that does something along the line of: def MyScript(input_filename1, input_filename2): return val; i.e. for every pair of input, I calculate some float value. Note that val is a simple double/float. Since this computation is very intensive, I will be running them across different processes (might be on the s...

param getting passed as nil in Rails form

I have a form where I am trying to do a very simple CRUD operations on rails with MongoDB. I have my controller class RecipesController < ApplicationController def new @recipe = Recipe.new end def update end def create recipe = Recipe.create(params[:title]) redirect_to params[:title] @recipes = Recipe.all...

Looking for more details about memory map in MongoDB

Hi I am looking for more details/docs or anything else about 'memory map mechanism' in MongoDB, and wondering how they use this to achieve high performance. Anyone could help? Thanks in advance~ ...

Eager Loading of Associations using MongoMapper

I'm looking to Eager Load Associated Documents using MongoMapper. Say I have an author with a :has_one condition to a Post, I should be able to load the author using a single query Post.find(:all, :include => :author) Any suggestions? ...

How to work on the XAMPP & mongodb in windows?

Can any one let me know how to start working on the MongoDB in xampp(windows) with examples of applications? ...

MongoDB versus CouchDB... And any other "major players"

What are the major differences between MongoDB and CouchDB, and are there any other major NO-SQL database-servers out there worth mentioning? I know that CERN uses CouchDB somewhere in their LHC back-end; huge stamp of approval. What are MongoDB - and any other major servers' - references? Update One of the major selling points of Cou...

Java API for MongoDB

What is in your experience a good Java API for MongoDB? I am searching for something with annotation based mapping of Java POJOs to MongoDB resources and a decent query abstraction layer. ...

mongodb install - requirements?

Anyone know how much disk space and ram a standard ubuntu install on mongo needs? trying to map out my VPS needs ... ...

Which GUI are you using for MongoDB (Web/Linux/Mac)?

Which Mac, linux or Web GUI are you using for MongoDB. A lot of projects seem to be very dead and I haven't succeeded installing a couple: http://blog.timgourley.com/post/453680012/tuesday-night-tech-mongodb-ui-edition http://www.mongodb.org/display/DOCS/Admin+UIs Is anyone using a good one that actually works and is actively maintai...

mongodb: updating elements?

Hi everyone, I am (as most ) coming from a mySQL background trying to switch over to noSQL and mongoDB. Since denormalization is a part of noSQL since joins is impossible, here's how I would design a simple blog: array ( blog_title => 'my blogpost', 'date' => '2010-09-05', comments => array ( '1' => 'Such a good pos...

HBase cassandra couchdb mongodb..any fundamental difference?

Hi, I just wanted to know if there is a fundamental difference between hbase, cassandra, couchdb and monogodb ? In other words, are they all competing in the exact same market and trying to solve the exact same problems. Or they fit best in different scenarios? All this comes to the question, what should I chose when. Matter of taste? ...

Need advice on MongoDB Schema for Chat App. Embedded vs Related Documents

I'm starting a MongoDB project just for kicks and as a chance to learn MongoDB/NoSQL schemas. It'll be a live chat app and the stack includes: Rails 3, Ruby 1.9.2, Devise, Mongoid/MongoDB, CarrierWave, Redis, JQuery. I'll be handling the live chat polling/message queueing separately. Not sure how yet, either Node.js, APE or custom Eve...

SQL injections with noSQL databases?

Hi guys, I am using mongoDB currently, and I am wondering what measures we should take to ensure that any data that could cause problems isn't stored. I believe that normal PHP functions like mysql_escape_string isn't going to help here... Is there SQL injections for noSQL databases and especially mongoDB? If so, what can we do to prot...

How to connect to a slave if master goes down -- Replication

Hi. I'm playing around with data replication in MongoDb, and I currently have a master and several slave nodes. All of these are running on different ports, but they could just as well be on different machines (I'm testing atm). My question is, how would I go about connecting to these from my code? Currently, I just have one instance o...

mongoDB replication+sharding on 2 servers reasonable?

Consider the following setup: There a 2 physical servers which are set up as a regular mongodb replication set (including an arbiter process, so automatic failover will work correctly). now, as far as i understand, most actual work will be done on the primary server, while the slave will mostly just do work to keep its dataset in sync....

Mongodb crashed! Where has my data gone?

Please help! Mongodb crashed on my server. When I started the mongod backup I have no data in database! Looking at the data/db/ directory I have the following 5 files: mongo.lock production-mongodb 4k production-mongodb.0 64m production-mongodb.1 128m production-mongodb.ns 16m I think mongo has somehow started a new...

Smart way to evaluate what is the right NoSQL database for me?

There appears to be a myriad of NoSQL databases available these days: CouchDB MongoDB Cassandra Hadoop There's also a boundary between these tools and tools such as Redis that work as a memcached replacement. Without hand waving and throwing too many buzz words - my question is the following: How does one intelligently decide which...

Tools for Testing a web app (developed with Ruby on Rails / Mongo DB)

I am writing a web application with ruby on rails. It uses mongo db as well. I have a few questions: Firstly, what are the available testing tools (preferrably, free/open-source) for testing web-apps written in ruby on rails. Secondly, what are the testing areas that should and can be generally covered with the above tools (unit, func...