Questions tagged as 'mongodb'

1
answer

How to capture mongodb exceptions in java?

Hi, I have the following code in which I connect to the database, but I can not capture the exceptions that the mongo driver presents in any way. import com.mongodb.MongoClient; import com.mongodb.MongoException; import com.mongodb.MongoSocket...
asked by 11.01.2017 / 00:57
0
answers

How can I compare a data binary with GridFs in MongoDb?

I am using C # and MongoDB as the database engine. In my application I keep the User's Footprint used the following lines in C #. var id3 = ObjectId.Empty; using (var file = File.OpenRead(rutaArchivo)) {...
asked by 14.11.2016 / 23:19
1
answer

Profiling in azure webapp?

We have developed a WebApi platform which is hosted on Azure, and using MongoDB as a database. Before release, we did several load tests and it supports up to 11000 requests per second, and right now we have an average load of around 200 requ...
asked by 02.08.2016 / 15:31
1
answer

Query between a range of dates of a json in mongodb

I have the following collection in mongodb, I want to get the cveUsuario , activo and the historial , but the history only on days that are in the range of dates selected by the user. { "_id": ObjectId("5847167aa7f95025303...
asked by 27.11.2018 / 01:10
4
answers

Query about nodejs and android, use api or queries to the bd

I want to know if to make an application on android, should I connect and make queries directly to the bd, or use an API? , I have currently made a web in express / nodejs and mongo using jade and angular for the management of templates and part...
asked by 18.10.2016 / 07:49
1
answer

Error installing gem "mongo"

I have a problem installing the mongodb gem, can someone tell me the problem? $ gem install mongo -v 2.2.4 ERROR: Error installing mongo: ERROR: Failed to build gem native extension. current directory: C:/Ruby25-x64/lib/ruby/gems...
asked by 08.03.2018 / 02:56
2
answers

Relationships in mongoose with personalized id

I have 2 models that I want to relate to be able to make queries in mongoose. Users Model import mongoose from 'mongoose' const Schema = mongoose.Schema let csvuaSchema = new Schema({ codigo: { type: 'String' }, georeferencia: { type:...
asked by 09.12.2018 / 23:32
1
answer

Does a user need to install mongodb for a java program using mongodb?

The point is that I am developing a program that uses mongodb locally as a database. And what I need to know is if the person who is going to use my program will need to install mongodb on their computer or if on the contrary the mongo...
asked by 27.06.2017 / 13:04
3
answers

Using findOne () and findOneById with HTTP requests (Nodejs + mongoose)

I'm doing a api rest where I want to do HTTP requests using Postman, specifically I want to do a search or update a mongodb document, but this must be by an id that is not the doc_id that mongo provides. Basically what I need is for someone t...
asked by 14.04.2017 / 20:27
1
answer

Modify a field of all documents

Greetings, I have a question about the update method. TablaPTC.update({compGasto:"si"},{$set: {acumulado: "0"}}); Currently this is my method, and I'm not sure I have to change it to serve.     
asked by 17.01.2017 / 04:54