Questions tagged as 'mongodb'

1
answer

Searching for documents with mongoDB

I'm using mongoDB 3.2 with Java. Is it possible to save a mongoDB query in a list of objects of a class of mine? I want to save the query directly to a list of people. class Pessoa{ String nome; Date dataNascimento; String em...
asked by 10.03.2016 / 18:57
0
answers

Mongo (3 shards) C ++ Driver: SyncClusterConnection error

I'm having trouble running the upsert on the mongo when I connect in 3 shards in cpp. Now when I connect in only one of the shards I can do the operation. Does anyone have an alternative or do you know the reason for this error? CODE: Conne...
asked by 26.07.2016 / 21:57
1
answer

How to improve query performance in mongoDB in collections with millions of records and each of them with many searchable attributes?

There is a collection with approximately 20 million records and each with about 200 searchable attributes. Example: {atrib001:"abc", atrib002:"123", atrib003:"1x3"... atrib200:"1zz"} The application that does search allows it to be mount...
asked by 04.12.2015 / 22:02
0
answers

MongoDB + Intel XDK

I need to use MongoDB inside Intel XDK, to log, register, save coordinates, then display on a map, etc ... Anyone have any suggestions for tool? Thank you!     
asked by 12.09.2015 / 02:03
2
answers

Collate MongoDb

I need to do an auto complete that consumes a mongodb database. The words can be written with or without accent, uppercase or lowercase, that is, I need to define a collage in the mongo that allows me to do a search that ignores accent and case...
asked by 05.11.2015 / 13:47
2
answers

How to get non-duplicate records with mongoDB and Morphia?

How do I get mongoDB to return a list of non-duplicate documents. In my case, the mongoDB returns a list of ingredients from all the recipes registered, but I want those records without duplication because the recipes can repeat the same ingr...
asked by 06.05.2016 / 19:32
0
answers

How to disable numberLong in mongo 3?

How to disable numberLong in mongo 3? I've tried mongo.native_long=0 and it did not work. I'm using perl with mongoexport I'm using perl with mongoexport     
asked by 12.05.2015 / 03:09
0
answers

Web2py - Auth - Authentication with MongoDB

I'm trying to use MongoDB with Web2py, and for that I started with authentication, but this one appearing errors that I do not understand. In a relational database, Web2py creates the authentication tables, in MongoDB the collections are not...
asked by 19.06.2015 / 15:56
1
answer

Referencing or embedding documents in mongodb and couchdb

I'm thinking of creating referenced documents instead of embedded because I have a database in which an airplane has flights and flights have airports. Anyone experienced that could indicate the best option? Imagine that I choose the referenc...
asked by 25.09.2015 / 04:46
1
answer

Sum of values Nodejs + Mongoose

I need to sum the values stored in a variable in the database. I have a form and I want to know the total value generated in a variable. Then I did the following: _.each(cliente.data, function (data) { fo...
asked by 01.09.2015 / 14:45