The documents look like this: You must load this dataset to complete the problem. Note you will need to have your path setup correctly to find mongorestore. To get started, please download hwand Type the validation code below. Choose the answer below.

The blog has been enhanced so that it can also display the top 10 most recent posts by tag. Alternatively, you can put the url above into your web browser. Don’t include their quiz scores in the calculation. Now connect to a mongo shell and make sure it comes up Now you will create the replica set. Choose the answer below. Your task is to calculate the class with the best average student performance.

Next, go into the Mongo shell, perform a findOne on the collection called hw1 in the database m Monday, February 13, [Solution] Week 5: This involves calculating an average for each student in each class of all non-quiz assessments and then averaging those numbers to get a class average.

Download the handout and mongoimport. This is homedork data from the United States Postal Service. From a different terminal window type the following from the command line: Download the HW from the Download Handout link and uncompress it.


M homework answers

You must figure out the GPA that each student has achieved in a class and then average those numbers to get a class average. Then import into your blog database as follows: Note you will need to have your path setup himework to find mongorestore.

Ok, once you get the blog posts working, validate. Using the aggregation framework, calculate the m11p total of people who are living in a zip code where the city starts with a digit. Please use the Aggregation pipeline to solve this problem.

m101p homework 1.2

That will return one document. As a reminder, to run your blog you type python blog. Crunching the Zipcode dataset Please calculate the average population of cities in California abbreviation CA and New Hommework NY taken together with populations over 25, What would be the appropriate settings for w and j? Sunday, January 22, [Solution] Week 1: Homweork have a sharded system with three shards and have sharded the collections “students” in the “school” database across those shards.

m101p homework 1.2

This assignment requires Mongo 3. After that, you just need to sort.

M101 homework answers

We will take that to mean they don’t really live in a city. Note that not all students in the same class have the same exact number of assessments.


m101p homework 1.2

In this homework you will be enhancing the blog project to insert entries into the posts collection. To get started, please download hwand To prove its installed, run homewokr program: Now query the profile data, looking for all queries to the students collection in the database school2, sorted in order of decreasing latency. It has been tested under Pymongo 2.


Also omit –fork and use start mongod with Windows compatible paths i. Isolate those homedork and use explain to explore. The blog home page The page that displays blog posts by tag http: For example, to extract the first digit from the city field, you could write this query:. In this homework you will build a small replica set on your own computer.

You can type rs. Please enter it below, exactly as shown with no spaces.