Report.docx - User Documentation Final: Documentation Fayaz...

This preview shows page 1 - 4 out of 7 pages.

The preview shows page 2 - 4 out of 7 pages.
User DocumentationFinal: DocumentationFayaz ShaikhIT 385 – IT CommunicationsSouthern New Hampshire UniversityOctober 16, 20191
Collection Management1.Creating databasesBelow command creates a “market” database or switches to one if already existinguse market2.Creating CollectionsBelow command creates a collection named "inspections"db.createCollection("stocks")3.Importing data into database using mongoimportCollection Management: Single or Compound Indexes1.Creating Single IndexesBelow command shows the creation of indexes on key “business_name”. This helps toincrease the performance of any query that searches on the bases of the business_namekey.db.stocks.createIndex({"Ticker":1})2.Creating Compound Indexes
The below statement performs the creation of compound indexes. This index helps inincreasing the performance based on Ticker value in a particular sector.db.stocks.createIndex({Ticker:1, Sector:1})3.Retrieving the list of all existing indexes on a collectionBelow statement retrieves the list of all the indexes on a collectionsdb.stocks.getIndexes()The result contains the information containing keys and options that were used to createthe index.

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 7 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Summer
Professor
N/A
Tags
Subroutine, Collection Management

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture