Now connect to a mongo shell and make sure it comes up Now you will create the replica set. That will return one document. Please enter it below, exactly as shown with no spaces. After this, the blog will work. In this homework you will build a small replica set on your own computer. Now query the profile data, looking for all queries to the students collection in the database school2, sorted in order of decreasing latency.

Note you will need to have your path setup correctly to find mongorestore. Download the handout and run it as follows: Use mongorestore to restore the dump into your running mongod. If you imported it correctly, you can go to the test database in the mongo shell and conform that. Check all that apply. Note that not all students in the same class have the same exact number of assessments.

M101 homework answers

The areas where you need to add code are marked with XXX. To help you verify your work before submitting, the author with the fewest comments is Mariela Sherer and she commented times.

This is raw data from the United States Postal Service. Monday, February 13, [Solution] Week 5: It will allow you to add blog posts with a title, body and tags and homewoek it be added to the posts collection properly. Once you have added the indexes to make those pages fast run the following. Type the following commands into the mongo shell: Ok, once you get the blog posts working, validate. Making the Blog fast Please download hw Finding the most frequent author m1011p comments on your blog In this assignment you will use the aggregation framework to find the most frequent author of comments on your blog.


Download the HW from the Download Handout link and uncompress it. We will check that it works with validate. Using the aggregation framework, calculate the sum total of people who are living in a zip code where the city starts with a digit.

m101p homework 1.2

In this problem you will analyze a profile log taken from a different mongoDB instance and you will import it into a collection named sysprofile. Download the handout and mongoimport.

Steve Breese

There are hyperlinks from the post tags to the page that displays the 10 most recent blog entries for that tag. Choose the answer below. If you imported it correctly, you can go to the test database in the mongo shell and conform that.

The blog home page The page that displays blog posts by tag http: In this homework assignment you will be adding some indexes to the post collection to make the blog fast.

Get PyMongo installed on your computer. From a different terminal window type the following from the command line: Different states might have the same city name.


jomework This program will print a numeric answer. The browser is probably wrapping them visually. Type the validation code below. We have provided the code that creates users and allows you to login the assignment from last week. That will return one document.

MongoDB university mp chapter 1 homework – bigmongodb

What would be the appropriate settings for w and homewogk Which of the following statements are true about choosing and using a shard key?

m101p homework 1.2

Start by downloading the handout zip file for this problem. This involves homewofk an average for each student in each class of all non-quiz assessments and then averaging those numbers to get a class average.

Type the two-digit answer into the box below no spaces. The code is not 3.


To be clear, each student’s average includes only exams and homework grades. Please enter it below, exactly as shown with no spaces.

There are entries with lots of comments and tags.