Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7981703
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T10:27:19+00:00 2026-06-04T10:27:19+00:00

I have a single csv file with data about schools: their locations, their names

  • 0

I have a single csv file with data about schools: their locations, their names and a number of indicator values for each:

County_id, County_name, Municipality_id, Municipality_name, School_id,
School_name, Year, Indicator_1, Indicator_2, Indicator_3 […]

I am building an interactive JavaScript visualization around this data and would like to serve it using MongoDB.

Some typical queries would be: (pseudo)

  • Get a list of all Schools and their respective locations
  • Get all Indicator_1 values for all years for schools in a specific location
  • Count the number of schools in a specific location

1. Based on the data given, how should I set up my MongoDB documents/collections to be able to answer queries such as the above?
(Hints on what intermediate steps I should take to import and build the schema are also welcome.)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T10:27:21+00:00Added an answer on June 4, 2026 at 10:27 am

    For aggregate queries, check out MongoDB’s MapReduce. This by default will create new collections based on your map/reduce functions (but can also run in-memory).

    You can use mongoimport to import CSV data into the database, then leverage map/reduce to get the data you want.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a CSV file that has rows, where data for some columns only
I have a scenario where data needs to be imported from a CSV file
I have a script to export data from MYSQL to a CSV file. the
I have a CSV file that holds about 200,000 - 300,000 records. Most of
I have a CSV file with 5 columns and about 2*10 4 rows that
I have written application that is analyzing data and writing results in CSV file.
I have a single xml file and every new thread of the program (BHO)
I have a single xml document (data.xml), which I display as HTML using an
I have a single image file in a folder in my Eclipse project that
I have a single XML file that I want to index using Lucene.NET. The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.