M101P HOMEWORK 1.2

We have provided the full code for the blog application and you don’t need to make any changes, or even run the blog. That will return one document. What can you infer from the following explain output? Now use the aggregation framework to calculate the author with the greatest number of comments. Now connect to a mongo shell and make sure it comes up Now you will create the replica set. We are also providing a patriotic if you are an American data set for the blog. We have provided the code that creates users and allows you to login the assignment from last week.

On unix, this could be done as follows: To get started, please download hwand Which of the following queries can utilize at least one index to find all matching documents, or to sort? The blog home page The page that displays blog posts by tag http: What can you infer from the following explain output? This program will print a numeric answer.

Steve Breese – Web Application Developer

To prove its installed, run the program: Which of the following 11.2 can utilize at least one index to find all matching documents, or to sort? There are hyperlinks from the post tags to the page that displays the 10 most recent blog entries for that tag.

  THESIS MOAI L20

Please put just the 4-digit number into the box below no spaces. If you imported it correctly, you can go to the test database in the mongo shell and conform that.

m101p homework 1.2

Install MongoDB on your computer and run it on the standard port. Note that are three commands. You will be using these files for this homework, and for HW 3. Once again, you will be using the 12. code collection, which you will find in the ‘handouts’ link in this page.

It has been tested under Pymongo 2. Type the following commands into the mongo shell: The answer for CT and NJ using this data set is Note you will need to have your path setup correctly to find mongorestore. Please choose your answer below for the most prolific comment author:. Check all that apply.

Different states might have the same city name. Import it into your mongod using the following command from the command line: Finding the most frequent author of comments on your blog In this assignment you will use the aggregation framework to find hommework most frequent author of comments on your blog.

Failed with error ‘migration already in progress’, from s0 to s1 databases: What is the latency of the mm101p running operation to the collection, in milliseconds?

  CURRICULUM VITAE EBOUEUR

After that, you just need to sort.

Steve Breese

Monday, January 30, [Solution] Week 3: Posted by Unknown at 6: Sunday, February 5, [Solution] Week 4: Ok, once you get the blog posts working, validate.

Now use the aggregation framework to calculate the author with the greatest number of comments. Removing Rural Residents In this problem you will calculate the number of people who live in a zip code in the US where the city starts with a digit.

The documents look like this: The output of sh. Download the HW from the Download Handout link and uncompress it.

Note you will need to have your path setup correctly to find mongorestore. Download the handout and mongoimport. Please provide the value corresponding to the “answer” key from the document returned.

m101p homework 1.2

Posted by Unknown at 8: Omit -p from mkdir. We will check that it works with validate. The project operator can extract the first digit from any field.