Combine MongoDB and Postgresql in Rails?
Is it possible to combine AR with MongoMapper/MongoID? If so, are there tutorials/documentations for this? ...
Is it possible to combine AR with MongoMapper/MongoID? If so, are there tutorials/documentations for this? ...
The more I read/use non-sql databases, the more I love it. It's so for the OOP world and it's easy to use, like Rails for Frameworks. I know the disadvantages. The major concern seems to be the no-transaction and no-concurrency part. Am I correct? Are these the only features making it hard for developers to choose to use non-sql datab...
I know there are three different, popular types of non-sql databases. Key/Value: Redis, Tokyo Cabinet, Memcached ColumnFamily: Cassandra, HBase Document: MongoDB, CouchDB I have read long blogs about it without understanding so much. I know relational databases and get the hang around document-based databases like MongoDB/CouchDB. ...
For test purposes I have gearman running on localhost. So I run the gearman worker.php file from php command line. When I test this in normal apache mode, mongoDB works just fine, but when it runs from the gearman worker file I get the error "fatal error: class 'Mongo' not found". Now the Mongo class comes from pecl and the mongo.so exte...
I'm running Mongo DB as windows service and every second time I stop the service it reports "Error 109: The pipe has been ended". Here is the command line being used to run the service "C:\Temp\mongodb\bin\mongod" --service --serviceUser --servicePassword --dbpath C:\temp\db --rest --logpath C:\temp\db\log\mongo.log --logappend --dire...
Im using MongoDB and Ruby. I have noticed there are different DSL:s. The Javascript DSL used with the MongoDB client (mongo): show dbs use my_db db.person.find({first_name: "Syd"}) The Ruby DSL used with the Ruby driver for MongoDB: connection = Mongo::Connection.new connection.database_names.each { |name| puts name } connection.da...
In my Sinatra app, I'm using a MongoDB with Grid to store book covers on Heroku. I want to be able to associate these with the books in my ActiveRecord-driven primary database. Currently, I'm downloading the image from Google Books, storing it in the MongoDB, and storing the BSON::ObjectID object into the database as a string. When I go...
Could I use the Mongo client shell queries/commands from inside Ruby? I know there is the Ruby driver DSL, but I was thinking about something similar to running a SQL query from within PHP. Just for the sake of knowing. ...
I'm writing an API which uses MongoDB as the storage backend. Let's say the API allows a consumer to query for upcoming events. Let's say some events are private, and for the current user, should not come up in the results. Should I: Implement this at the API level. The API code, will be responsible for these checks. The advantage see...
I'm looking for hosting that provides both asp.net (prefer .net 4) and MongoDB. Anyone know any providers? ...
I have an application that will periodically create a large number (10,000+) of hashes (collections of name/value pairs). The hashes may be manipulated a few times, and then deleted. Is MongoDB an appropriate choice for this? Are there any obviously-better-suited alternatives? ...
I have around 2 million strings with different lengths that I need to compress and put into MongoDb GridFS as files. The strings are currently stored in MS SQL TEXT field of a table. I wrote a sample app to read each row, compress it and store it as a GridFS file. There is one reader and a thread pool of 50 threads storing the results....
Is there any open-source document-oriented key-value map/reduce storage that: is easily embeddable (Yes, it is possible to embed, let's say CouchDB, but it might be a pain to take the whole erlang machine onboard and I just don't feel good about it bounded on some port when my app is running) does not keep the whole map in RAM (Hello, ...
I want to generate a CSS file based on the users choices. I am considering which way would be best. On example is to use arrays and save them in a XML file or use a key/value store like Mongo DB. In that way the array can be pulled from the XML or key/value database, modified and saved. After that a CSS file would be generated based on...
Assuming I have the following document structure: { "name": "myProduct", "perspectives" : [ { "name": "p1", "views" : [ { "name": "v1" }, { "name": "v2" } ] }, { ...
References: http://www.mongodb.org/display/DOCS/Java+Tutorial Still pretty new to mongo db but I'm trying to update part of an existing document inside a collection... unfortunately, the link above doesn't have an update example. Essentially, i just want to be able to: Add new fields to a document Update existing fields of a docu...
I have some 25k documents (4 GB in raw json) of data that I want to perform a few javascript operations on to make it more accessible to my end data consumer (R), and I would like to sort of "version control" these changes by adding a new collection for each change, but I cannot figure out how to map/reduce without the reduce. I want a o...
Does anyone out there have any great ideas to achieve a massively scalable hierarchical datastore? It needs rapid add and ability to have many users of site requesting reports on the number of nodes below a certain node in hierarchy. This is the scenario.... I will have a very large number of nodes getting added per hour. Lets say I w...
Hi together, at the moment I'm doing some tests with MongoMapper. When using relations, http://www.mongodb.org/display/DOCS/MongoDB+Data+Modeling+and+Rails sugests to use cached values where it fits... I take a stripped down example from there: class Story include MongoMapper::Document key :title, String key :url, Str...
http://api.mongodb.org/java/2.1/com/mongodb/DBCollection.html#find(com.mongodb.DBObject,com.mongodb.DBObject,int,int) Using this with Grails and the mongo db plugin. Here's the code I'm using... not sure why but the cursor is returning the entire set of data. In this case, I'm just trying to return the first 20 matches (with is_proces...