Questions tagged as 'mongodb'

1
answer

Numbers are not adding up correctly

I'm doing a search on MongoDB and bringing the sum of some values. It correctly brings the values that are there by adding them up. The problem is being when I need to, for example, get the value 1 and add it with the value 2. I have 2 nu...
asked by 13.03.2017 / 23:44
1
answer

How to increase the connection limit of MongoDB?

Good morning. I have an Ubuntu 16.04 LTS server, hosted on Linode. Yesterday I spent all night reading articles and testing settings to increase the connection capacity of MongoDB, but nothing worked. At the moment the mongo is with 819 availabl...
asked by 13.01.2017 / 12:32
1
answer

Last record

I need to know how to get the last record stored in the mongo. I'm doing a search, comparing two IDS, I need to return only the last record. I have the following variables: client.name client.cpf client.endereço I'm doing the sear...
asked by 24.06.2015 / 16:18
1
answer

SQL Server vs. MongoDB - Disk Size

Today I have a very large table in SQL Server and it receives data all the time regarding some machines in the factory. This is causing a problem of heavy disk consumption, the size of the table does not stop increasing. If I pass this tab...
asked by 04.10.2018 / 14:08
1
answer

Problems starting MongoDB

I'm starting mongodb studies on ubuntu 18.04. I installed it, I created the dbpath folder, but when I start with the command mongo that error message appears, how can I fix it? Imadethemongodandthenmongoandgavethesameerror     
asked by 23.05.2018 / 16:30
1
answer

MongoDb query works in shell, and does not work in PHP [closed]

I need help in querying the mongoDB database, in the shell I can perform the search normally, however, on the site, I get the error 'not authorized for query on'. I use the mLab service for database. I'm using the same user in the shell and i...
asked by 10.01.2018 / 13:51
1
answer

String string in Javascript

I'm developing an application in VueJS and on a screen I have two input's of time and are being saved in MongoDB as String. However the input only accepts in the time format and when I click on the grid and the inputs are filled with the data of...
asked by 06.10.2017 / 14:58
1
answer

How to export and import a database

I have mongodb installed on two different computers, where I am studying / developing applications. Usually at the end of the day, I send all the code to a Git server, but the database stays local.    I would like to know how to take the (who...
asked by 16.05.2017 / 02:30
2
answers

I want mongodb with regex

I'm trying to find the best way to make this search in mongodb. I have this number 42999234180 and I have a table of prefixes that range from 3 to 7 characters, I would like that when searching for 4299234180 it would return the value that was m...
asked by 21.03.2017 / 21:49
1
answer

MongoDB Integration with ASP.NET MVC 5 and PostgreSQL

I am building an ASP.NET MVC 5 project with PostgreSQL database, in this database there is a history table that will grow by about 500,000 lines per month and we will have reports that will take data from periods of one year. So we thought abo...
asked by 20.03.2017 / 15:25