In this problem, you will be using an old weather dataset. This homework is meant to give you practice using the “package. In this problem you will analyze a profile log taken from a mongoDB instance. Note that this requires Node. Let’s see what Tamika Schildgen’s record looks like:

There are entries with lots of comments and tags. Write that text in the text box below. Isolate those queries and use explain to explore. Assuming this document has the highest “Temperature” for the “State” of “Vermont” in our collection, the document should look like this after you run your program:. You must load this dataset to complete the problem.

If everything is working properly, you should be able to start the blog by typing: MongoDB for Developers Homework 2. Note that this is only an example and not the actual document that you would be updating.


Then install all the dependencies listed in the ‘package. Use that data set to answer this question. Do not include the surrounding quotes in providing your answer. Find all exam scores greater than or equal to 65, and sort those scores from lowest to highest.

If you goto http: Then install the mongodb driver: Since there is a single document for each student containing an array of scores, you will need to update the scores array and remove the homework.


One way is to find the lowest homework in code and then update the scores array with the low homework pruned.

mongodb homework 2.2

If everything is working properly, you should be able to start the blog by typing: Express server listening on port If you goto http: Now run the application to get the answer to hw To do this, first download the hw Don’t remove a quiz or an exam!

To confirm you are on the right track, here are some queries to run after you process the data with the correct answer shown: Use the weather dataset that you imported in HW 2. Write homewogk text in the text box below. To start, please download sysprofile.

What is the latency of the longest running operation to homeworl collection, in milliseconds? The database calls that you are going to add will add a new user upon sign-up and validate a login by retrieving the right user document. Sunday, January 22, [Solution] Week 2: Note that this requires Node. The templates comprise the view.


There is also a views directory which contains the templates for the project.

AngularJS,JQuery,,C#,SQL Server: Homework MongoDB for .Net Development

Do this by opening a terminal window mac or cmd window windows and navigating to the directory so that the dump directory is directly beneath you. In this homework assignment you will homewofk adding some indexes to the post collection to make the blog fast.

mongodb homework 2.2

You can verify that you’ve imported the data correctly by running the following commands homewor, the mongo shell:. The blog has been enhanced so that it can also display the top 10 most recent posts by tag.

Hello from MongoDB!

From the top of this page, there was one additional program that should have been downloaded: Once you have added the indexes to make those pages fast, just validate your work with MongoProc. Posted by Unknown at That will return one document.

Use mongorestore to restore the dump into your running mongod.