Questions tagged as 'mongodb'

1
answer

What is the correct way to structure addresses in mongodb?

When I learned SQL, the way to address was to create a series of tables (neighborhoods, cities, states, countries). Then he related the tables. So just add the id of the neighborhood to the record in question (client, supplier, collaborator ...)...
asked by 27.02.2016 / 03:05
1
answer

Security when sending and retrieving data from a URL

Hello, I am learning development and I do not know much about security. I'm doing a web application using Nodejs + Expressjs + AngularJs + MongoDB . I did as follows, the MongoDB data is sent to a URL using the Post...
asked by 21.10.2015 / 18:11
2
answers

Update in array MONGODB

{ "_id" : "55dcb404478e7227203d3a65", "Nome" : "Grupo Familia", "Pessoas" : [ { "PessoaId" : "55dcb425478e72207833e970", "Nome" : "Carlos", "Habilidades" : [ { "HabilidadeId" : "55dcb433478...
asked by 27.08.2015 / 21:59
1
answer

Update Mongodb in array

{ "_id" : "55dcb404478e7227203d3a65", "Nome" : "Grupo Familia", "Pessoas" : [ { "PessoaId" : "55dcb425478e72207833e970", "Nome" : "Carlos", "Habilidades" : [ {...
asked by 25.08.2015 / 21:14
1
answer

Query by time interval in mongodb using pymongo

I need to perform a query on a mongodb database that results in one result set per time range. I'm using pymongo. My query looks like this: queryConsulta = {"$and": [ {"id_no": id_node}, {"porta": porta...
asked by 14.10.2014 / 04:31
1
answer

Limit aggregation per grouped item in mongo

I have a collection composed as follows, but with much more data. { _id: ObjectId("db759d014f70743495ef1000"), tracked_item_origin: "winword", tracked_item_type: "Software", machine_user: "mmm.mmm", organization_id: ObjectId("a91864d...
asked by 20.02.2014 / 16:44
1
answer

genericsT Dependency Injection

Good morning, friends. I ran into a difficulty and I can not get past it. I have 2 projects, a webapi and a standard class, both in dot net core. In my standard project, I'm working with Repository to abstract CRUD in mongoDB. Follow th...
asked by 19.10.2017 / 14:43
0
answers

Slow query over MongoDB with index

I have a MongoDB collection with about 1.7 million documents, averaging 6kb per document. The bank is in a reasonable machine, with 6GB of RAM and 4 CPUs. This collection has an index on all fields in my query. The index has the attributes...
asked by 04.09.2018 / 22:53
1
answer

Mongo find array in collection

Good people, this is my output with the normal find: { "_id" : ObjectId("57be6168ce98ad853a96282f"), "nome" : "Mercado Padrão", "userId" : "o4wQ2i4Dt7cAMNf9A", "produtos" : [ { "nome" : "coca cola",...
asked by 25.08.2016 / 05:17
0
answers

Mongodb stopping working

We are in the company testing a project using MongoDB database. The database is installed on a Linux (CentOS) server, with 32GB of RAM, but sometimes the database para de funcionar and needs to be started again. Someone who has had exp...
asked by 19.12.2015 / 18:22