Questions tagged as 'mongodb'

2
answers

Error creating a replica set in MongoDB

I am assembling a replica set of mongod instances, the primary node started perfectly. But the other nodes that should appear as secondary are not messing around. And when I check on each of the nodes, in one I have this as a result:...
asked by 16.03.2016 / 15:00
0
answers

Slow to load image of Mongo with PHP

I'm developing a system that uses Mysql as a database and Mongo BD for image storage. The problem is that the loading of the images is very slow. NOTE: I am using laravel 5.2. Function that loads image: $db = new Conection("imagens"); $im...
asked by 01.02.2016 / 12:37
1
answer

Define a property within a BsonDocument

Save Galley! I'm working with C # MongoDB .Net Driver, and have something I'm not understanding in the queries, follow the example: var dataBase = mongoClient.GetDatabase(dbName); var transactionsColl = dataBase.GetCollection<Bso...
asked by 02.03.2016 / 18:25
2
answers

MongoDB problem in data listing with php

var mongoose = require('mongoose'); var db = mongoose.connection; // db connect db.on('error', console.error); db.once('open', function() { console.log('Conectado ao MongoDB.') }); mongoose.connect('mongod...
asked by 07.01.2016 / 15:39
1
answer

Circular Oriented Graphs with Mongodb

Does anyone know if it is possible to create circular oriented graphs with Mongodb or need a specific graph-oriented database such as neo4j. Node A (The alloy with B) Node B (B alloys with C) Node C (C binds to A) A-> -B-> -C-> -A (c...
asked by 17.11.2015 / 17:08
1
answer

Error in mongodb: E QUERY SyntaxError: Unexpected identifier

I'm trying to use mongodb for the first time and did the installation using macports after that. In a terminal I run the mongod. In another run the mongo command. In the mongo terminal I try to execute the import command but I can not, it...
asked by 15.11.2015 / 03:20
0
answers

What is the behavior when MongoDB reaches the defined maximum value of $ inc?

What is the behavior when Mongo reaches its maximum value for findAndModify with parameters below, how can I reset to 0 when this happens? db.collection('count').findAndModify( { "_id": "xy" }, [["_id", 1]], { $...
asked by 25.07.2015 / 06:55
0
answers

Help page Single Page Angular

I have an application with divided into several service blocks developed using NodeJs, AngularJs and MongoDB using Express. Each service block has its own services, controllers and their respective partials that work independently, but I can not...
asked by 15.06.2015 / 14:51
1
answer

Search comparing id of two collections

I need to load the data by joining two id In a form, I populate my client with an ID. In another form I fill in other information and load the customer ID. That is, both forms send the same ID to the bank. I need to generate a json that...
asked by 24.06.2015 / 21:01
0
answers

Data redirection with mongodb

I wanted to know if it is possible to target an object / result to a specific collection using the db.collection.find() command, which would equal the $out in the aggregate operation.     
asked by 19.03.2015 / 17:35