Questions tagged as 'mongodb'

2
answers

How to make a daemon for the command "mongod"

What is the procedure for leaving Mongo running on the server without the need to use the command mongod ? Is there any specific Mongo command for this?     
asked by 28.06.2016 / 19:12
1
answer

Update in mongoDB is deleting the rest of the document

I have a Structured Collection like this: { "_id": i43h21n5lk2354, "createdAt" : ISODate("2018-08-19T16:56:31.555Z"), "services" : { "facebook" : { .... name: "Michael Jackson" .......
asked by 19.08.2018 / 19:07
2
answers

mongodb error getNextSequence is not defined

Good morning, I can not create and execute this function in mondodb 3.4 I'm following this tutorial: Create an Auto-Incrementing Sequence Field Error Error: ReferenceError: getNextSequence is not defined: @ (shell): 3: 6 function getNex...
asked by 23.05.2017 / 19:19
2
answers

Control of high demand stock with firebird and / or mongodb

I'm thinking of migrating my ERP (currently in Java) from a relational database (currently in Firebird) to a NoSQL (probably MongoDB). I am planning and trying to anticipate possible problems. The goal is to build a control that will never let t...
asked by 15.01.2018 / 16:30
2
answers

Error 'Class' MongoDB \ Driver \ Manager' not found "

At the time of using MongoDB , together with Laravel it returns the following error:    FatalErrorException in Client.php line 61:   Class 'MongoDB \ Driver \ Manager' not found     
asked by 05.10.2016 / 16:53
1
answer

Multiple applications consuming the same database

Today I have an application that uses a database (MongoDB), but I have few users yet and as we know it is very difficult to have an application that will succeed and accumulate many users. Thinking about this I am planning to create a second a...
asked by 04.12.2018 / 00:19
1
answer

Relationship between collections MongoDB

I'd like to know if it's a good practice to create a relationship between two collections in MongoDB. Suppose I have a collection for users, with a scheme something like this: { "_id": ObjectId(...), "username": "", "groups": [...
asked by 16.03.2018 / 21:13
1
answer

Insertions in mongo how to do?

I'm doing a program that will hold numerous inserts in the mongo (about 500,000). But I realized by doing some tests, that the more entries in the mongo I have, the more time consuming the insertion. My code: def savePostRecommendation(uid,...
asked by 26.02.2018 / 20:11
1
answer

Mongodb stopping inserting documents

I'm inserting some records, but after a while, it does not let me insert more. The following is the console error: java.lang.IllegalStateException: Failed to execute CommandLineRunner at org.springframework.boot.SpringApplication.ca...
asked by 22.12.2016 / 15:05
1
answer

MongoDB Model

Hello! I'm starting to use MongoDB with Mongoose in NodeJS and I'm encountering a strange behavior when creating mesus Models in MongoDB. Example: mongoose.connect('mongodb://localhost/db_teste'); const PersonSchema = new Schema({ name: {...
asked by 07.05.2017 / 00:46