Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
2 votes
1 answer
1k views

Import huge XML data set into MongoDB while parsing data

I am currently working with the Stack Exchange Data Dump - to be more precise - with the dumped Posts.xml data set from Stack Overflow. What am I trying to achieve?...
djozefiak's user avatar
1 vote
1 answer
3k views

connection to mongodb in golang

I am building an API server in golang with mongodb. My main.go file looks something like this: ...
Santosh Kumar's user avatar
1 vote
1 answer
51 views

Express error if agency not found middleware

In an api I'm building, I have multiple routes that require an agency to exist before any action is performed on the requested agency. To avoid repetition I've written some middleware to check that ...
mrmadhat's user avatar
  • 168
7 votes
2 answers
3k views

Insert 271 million records from text file to mongodb

I have 271 million records, line by line in a text file that I need to add to MongoDB, and I'm using Python and Pymongo in order to do this. I first split the single file containing the 271 million ...
Diandro's user avatar
  • 71
4 votes
1 answer
711 views

Enhancing search using Fuzzy Logic in NodeJS

Brief Description: In my NodeJS Application, I have a model called User. User.js ...
Sudarshana Dayananda's user avatar
2 votes
2 answers
2k views

Retrieve a city list for a country and state

The code below is working properly but how do I make this code faster and more efficient. How do I perfect this code? Let's assume I have 1000 country, state and city records in a mongodb collection. ...
SUMIT VISHWAKARMA's user avatar
4 votes
1 answer
71 views

Get data and send mail script

I wrote a script using Python that gets data from several sources (news sites, Twitter, Yahoo), puts it into a dict and then formats it as a string to be sent through email. I wonder if there is ...
Alex T's user avatar
  • 133
1 vote
1 answer
100 views

Finding unreferenced documents

I have a database containing at least 2 collections datagroup and data. Each data document ...
NatNgs's user avatar
  • 199
3 votes
0 answers
667 views

Populate MongoDB with random documents using a Go channel

I recently created a small app in Go that generates random bson documents and insert them in a database (MongoDB). See this question for details. After doing some profiling, I realised that garbage ...
felix's user avatar
  • 608
2 votes
0 answers
54 views

Storing products in MongoDB with support for sorting by their number of followers

I'm loading products via an infinite scroll in chunks of 12 at a time. At times, I may want to sort these by how many followers they have. Below is how I'm tracking how many followers each product ...
NoobSter's user avatar
  • 193
2 votes
3 answers
83 views

Summing durations associated with each MAC address in a MongoDB result

I have a script which get data from MongoDB in the form of array and show the result. The array has a number of records in the thousands. A sample array is as follows: ...
user122674's user avatar
1 vote
1 answer
318 views

Efficiently update string (in XML format) in MongoDb

...
Anatoly's user avatar
  • 296
2 votes
0 answers
408 views

Updating a list of a few dozen document resources in MongoEngine

This is my model: ...
latusaki's user avatar
  • 251
2 votes
1 answer
62 views

Migrating Data in Mongo

I have the follow script to change my data within Mongo DB: ...
Will's user avatar
  • 121
5 votes
1 answer
1k views

E-commerce product price tracker

I building a very simple price tracker web app. I am using MongoDB with pymongo. The user will enter the URL of the product he wishes to track and the desired amount, when the price goes below this ...
avi's user avatar
  • 993

15 30 50 per page