Access MongoDB directly via JavaScript
Hi, is there any possibility to access and retrieve data from MongoDB directly over JavaScript form browser without backend processing? ...
Hi, is there any possibility to access and retrieve data from MongoDB directly over JavaScript form browser without backend processing? ...
I am having trouble grasping how to filter embedded documents in MongoDB, and am starting to think I should be using a relational association, but that feels wrong in the document-store context. Sticking with a typical blog/comment system, I have a collection of blogs, and each blog has many comments. The comments are stored as embedde...
I need to know what is size of the hash of MongoDB. Can't find it on wikipedia or official site. ...
Hello all, I'm working on an application that I'm going to write with C and i am considering to use a nosql db for storing timeseries data with at most 8 or 9 fields. But in every 5 minutes there will huge write operations such as 2-10 million rows and then there will be reads(but performance is not as crucial in read as in the write op...
I'm looking for resources showing how to integrate MongoDB with Hibernate (preferably from within spring) so that I can switch between a RDBMS and a NoSql alternative: does anyone have experience doing this? ...
Hey all, I have a mondoDB with data in it at the moment which I am querying with Ruby on Rails. I am looking to index the database to speed things up a bit. I read the mongoDB documentation and followed the instructions on how to add a index, like so: db.collection.ensureIndex({"key": 1}) This returns true and returns this in the co...
Hello, I was using the spawn plugin (http://rubyforge.org/projects/spawn/) which worked excellent. However, I then moved to Mongo (using mongo_mapper) and Spawn no longer worked. Modifying the plugin is beyond the scope of my abilities. Is there a simple way to do spawning in Rails that would work with Mongo? It's not an often-run proc...
Hey, I am using mongoDB and am curious to whether you can import scripts like you can in MySQL: mysql -uuser -ppassword database < script.sql Can you do this with mongoDB? Cheers Eef ...
Recently I stumbled across mongoDB, couchDB etc. I am hoping to have a play with this type of database and was wondering how much access to the hosting server one needs to get it running. If anyone has any knowledge of this, I would love to know whether it can be set up to work when your app is hosted via a 'normal' hosting company. ...
What are the best practices for NoSQL Databases, OODBs or whatever other acronyms may exist for them? For example, I've often seen a field "type" being used for deciding how the DB document (in couchDB/mongoDB terms) should be interpreted by the client, the application. Where applicable, use PHP as a reference language. Read: I'm also ...
Hello Everybody, I just wanted to take a look at Mongo-DB. But i just don't get it running. I've installed it with PECL and my phpinfo() tells me that the extension is loaded, but when i try to get a connection with $mongo = new Mongo(); I get this: Fatal error: Uncaught exception 'MongoConnectionException' with message ': Transport ...
I've been experimenting with MongoDB in order to move some parts of an app to it. I'm thinking a document-based db like mongodb would be a nice fit for tournament brackets but I'm having sort of a hard time coming up with a suitable model. (still trying to break free from RDBMS dogma) Anyone have any ideas for a good way to model Single...
I have a rails app using mongodb through mongomapper and all is well. The problem is... I'm going to want to use erlang to do some background processing and I want to update the same mongo/mongomapper models with the results of this processing. What's the best way to share model definitions between the two apps (rails and erlang) and rem...
I've been playing with MongoDB recently (It's AMAZINGLY FAST) using the C# driver on GitHub. Everything is working just find in my little single threaded console app I'm testing with. I'm able to add 1,000,000 documents (yes, million) in under 8 seconds running single threaded. I only get this performance if I use the connection outsi...
Hello, I have 2 extension methods that convert a MongoDB document to an entity/object. public static ProductTemplate Convert(this Document document) { return null; } public static Product Convert(this Document document) { return null; } This gives an expected ambiguous call error so I was wondering how I could fix this? Fri...
Currently, everything that I've read indicates that you must run MongoDB as a separate process/service. Is there any way to host MongoDB in-process? If not now, are their known plans to implement such a feature? ...
I'm in the initial phase of designing an application that will have a backend implemented in C# that will provide data for other platforms using WCF web services hosted on IIS. One of the platforms will the the iPhone. Since it's a personal project, I want to use it to learn MongoDB. I already know that there are community developed dri...
Hello, It seems I don't understand how I can get a value from a collection inside a document. I am using mongoDB in C#. Here is my code: var jimi = new Document(); jimi["Firstname"] = "Jimi"; jimi["Lastname"] = "James"; jimi["Pets"] = new[] { new Document().Append("Type", "Cat").Append("Name", "Fluffy"), new Document().Append...
Hi! I'm willing to give MongoDB and CouchDB a serious try. So far I've worked a bit with Mongo, but I'm also intrigued by Couch's RESTful approach. Having worked for years with relational DBs, I still don't get what is the best way to get some things done with non relational databases. For example, if I have 1000 car shops and 1000 ca...
Hi, I'm trying to retrieve a document when I have an object id - however, the query does not work. @collection = @db.collection('Mylist') @result = @collection.find({"_id" => params[:id]}) I've tried variations of the query - it always yields empty - however when I try a query on the collection such as below, that would work. @resul...