Questions tagged as 'mongodb'

1
answer

Filter locations in an area of X km

I'm trying to build a small project where I have a list of places and I can filter them according to a quantity x of km. Ex: Filter all places within a 5km radius of my current location. I have Json with some places in my city and when...
asked by 21.04.2016 / 14:50
1
answer

What is the difference between save and insert in MongoDB?

What difference does the MongoDB difference between insert insert with save and with insert? Example: db.pessoa.insert({"nome":"João"}); db.pessoa.save({"nome":"Maria"});     
asked by 27.07.2017 / 17:34
1
answer

Collections - mongodb

I have a collection called suspeitosSchema and another call acoesSchema . suspectsSchema: const suspeitosSchema = new mongoose.Schema({ sexo: { type: String }, etnia: { type: String }, cumprimentoCabelo: { type: String...
asked by 01.12.2017 / 19:58
1
answer

Main differences between MongoDB and Redis

I'm reading a book on real time applications with NodeJs. The author used MongoDB and Redis to exemplify the use of database with NodeJs. My doubt arose when he used both at the same time, justifying that Redis would be used for data that...
asked by 29.09.2014 / 16:16
1
answer

Categories tree in MongoDB, how to model?

Good night, guys. As MongoDB changes a lot of our way of modeling a database, I came across a question that may be half-beast. I'm doing a Restful API using Lumen and MongoDB as a database, and I want to create a collection of product cate...
asked by 07.10.2015 / 04:49
1
answer

Error installing mongodb 3.0 on linux Ubuntu 15.10?

I'm trying to install MongoDB on Ubuntu 15.10 , but, I can not install mongo always returning the following error when starting the service.    Failed to start mongod.service: Unit mongod.service failed to load: No such file or d...
asked by 22.11.2015 / 19:19
1
answer

MongoDB in production

I have an application that uses MongoDB, I'm getting to the end of its development and I just started thinking about how the installation of this bank would be done in the production environment. During development the collections were being c...
asked by 29.08.2015 / 16:08
1
answer

Comparison of hours in Laravel

I'm trying to create a method that will return the amount of minutes since the last insertion in the database. The way I did it was this one, but this one giving error: $now = Carbon::now(); $minutes = LusLeadUpdateStatus::select('created_at')...
asked by 30.08.2018 / 21:38
1
answer

Difference speed in HD Sata / SSD

I have MongoDB running on a 500GB SSD. But as the folder / data began to get very large, we put a 3TB HD slave , but this being SATA and not SSD as the first. But after changing the folder date to this new HD, we noticed a considerable di...
asked by 10.05.2016 / 15:05
1
answer

Wrong time at Mongodb

When I put in MongoDB schema : created: { type: Date, default: Date.now } The time is 3 hours too long. How can I fix this?     
asked by 01.03.2015 / 17:09