Download free for 30 days
Sign in
Upload
Language (EN)
Support
Business
Mobile
Social Media
Marketing
Technology
Art & Photos
Career
Design
Education
Presentations & Public Speaking
Government & Nonprofit
Healthcare
Internet
Law
Leadership & Management
Automotive
Engineering
Software
Recruiting & HR
Retail
Sales
Services
Science
Small Business & Entrepreneurship
Food
Environment
Economy & Finance
Data & Analytics
Investor Relations
Sports
Spiritual
News & Politics
Travel
Self Improvement
Real Estate
Entertainment & Humor
Health & Medicine
Devices & Hardware
Lifestyle
Change Language
Language
English
Español
Português
Français
Deutsche
Cancel
Save
EN
BL
Uploaded by
bhavesh lande
317 views
aggregation and indexing with suitable example using MongoDB.
Implement aggregation and indexing with suitable example using MongoDB.
Engineering
◦
Read more
0
Save
Share
Embed
Embed presentation
Download
Download to read offline
1
/ 3
2
/ 3
Most read
3
/ 3
Most read
More Related Content
PPTX
Array ADT(Abstract Data Type)|Data Structure
by
Akash Gaur
PPTX
Unit 4 python -list methods
by
narmadhakin
PPT
Graph traversal-BFS & DFS
by
Rajandeep Gill
PDF
Dijkstra's Algorithm
by
guest862df4e
PPTX
Stressen's matrix multiplication
by
Kumar
PPTX
Approximation Algorithms TSP
by
P. Subathra Kishore, KAMARAJ College of Engineering and Technology, Madurai
PPTX
Divide and conquer - Quick sort
by
Madhu Bala
PPTX
Singly & Circular Linked list
by
Khulna University of Engineering & Tecnology
Array ADT(Abstract Data Type)|Data Structure
by
Akash Gaur
Unit 4 python -list methods
by
narmadhakin
Graph traversal-BFS & DFS
by
Rajandeep Gill
Dijkstra's Algorithm
by
guest862df4e
Stressen's matrix multiplication
by
Kumar
Approximation Algorithms TSP
by
P. Subathra Kishore, KAMARAJ College of Engineering and Technology, Madurai
Divide and conquer - Quick sort
by
Madhu Bala
Singly & Circular Linked list
by
Khulna University of Engineering & Tecnology
What's hot
PPTX
Demonstrate interpolation search
by
manojmanoj218596
PDF
AI local search
by
Renas Rekany
PDF
Advanced data structures vol. 1
by
Christalin Nelson
PPTX
The dag representation of basic blocks
by
Shabeen Taj
PPTX
strassen matrix multiplication algorithm
by
evil eye
PPTX
8 QUEENS PROBLEM.pptx
by
sunidhi740916
PPTX
Hash table
by
Vu Tran
PDF
Red black trees
by
Amit Kumar Rathi
PPTX
Inner join and outer join
by
Nargis Ehsan
PPTX
Multistage graph unit 4 of algorithm.ppt
by
VidulaVinothkumar
PPTX
Bayesian Belief Network and its Applications.pptx
by
SamyakJain710491
PPT
Hash table
by
Rajendran
PPT
Graphs In Data Structure
by
Anuj Modi
PPTX
Backtracking
by
Sally Salem
PPT
finding Min and max element from given array using divide & conquer
by
Swati Kulkarni Jaipurkar
PDF
Introduction to NumPy
by
Huy Nguyen
PPT
Game playing (tic tac-toe), andor graph
by
Syed Zaid Irshad
PDF
16890 unit 2 heuristic search techniques
by
Jais Balta
PPTX
NoSql Data Management
by
sameerfaizan
PPTX
PRIM’S AND KRUSKAL’S ALGORITHM
by
JaydeepDesai10
Demonstrate interpolation search
by
manojmanoj218596
AI local search
by
Renas Rekany
Advanced data structures vol. 1
by
Christalin Nelson
The dag representation of basic blocks
by
Shabeen Taj
strassen matrix multiplication algorithm
by
evil eye
8 QUEENS PROBLEM.pptx
by
sunidhi740916
Hash table
by
Vu Tran
Red black trees
by
Amit Kumar Rathi
Inner join and outer join
by
Nargis Ehsan
Multistage graph unit 4 of algorithm.ppt
by
VidulaVinothkumar
Bayesian Belief Network and its Applications.pptx
by
SamyakJain710491
Hash table
by
Rajendran
Graphs In Data Structure
by
Anuj Modi
Backtracking
by
Sally Salem
finding Min and max element from given array using divide & conquer
by
Swati Kulkarni Jaipurkar
Introduction to NumPy
by
Huy Nguyen
Game playing (tic tac-toe), andor graph
by
Syed Zaid Irshad
16890 unit 2 heuristic search techniques
by
Jais Balta
NoSql Data Management
by
sameerfaizan
PRIM’S AND KRUSKAL’S ALGORITHM
by
JaydeepDesai10
More from bhavesh lande
PDF
The Annual G20 Scorecard – Research Performance 2019
by
bhavesh lande
PDF
information control and Security system
by
bhavesh lande
PDF
information technology and infrastructures choices
by
bhavesh lande
PDF
ethical issues,social issues
by
bhavesh lande
PDF
managing inforamation system
by
bhavesh lande
PDF
• E-commerce, e-business ,e-governance
by
bhavesh lande
PDF
IT and innovations
by
bhavesh lande
PDF
organisations and information systems
by
bhavesh lande
PDF
IT stratergy and digital goods
by
bhavesh lande
PDF
Implement Mapreduce with suitable example using MongoDB.
by
bhavesh lande
PDF
Unnamed PL/SQL code block: Use of Control structure and Exception handling i...
by
bhavesh lande
PDF
database application using SQL DML statements: all types of Join, Sub-Query ...
by
bhavesh lande
PDF
database application using SQL DML statements: Insert, Select, Update, Delet...
by
bhavesh lande
PDF
Design and Develop SQL DDL statements which demonstrate the use of SQL objec...
by
bhavesh lande
PDF
working with python
by
bhavesh lande
PDF
applications and advantages of python
by
bhavesh lande
PDF
introduction of python in data science
by
bhavesh lande
PDF
tools
by
bhavesh lande
PDF
data scientists and their role
by
bhavesh lande
PDF
applications
by
bhavesh lande
The Annual G20 Scorecard – Research Performance 2019
by
bhavesh lande
information control and Security system
by
bhavesh lande
information technology and infrastructures choices
by
bhavesh lande
ethical issues,social issues
by
bhavesh lande
managing inforamation system
by
bhavesh lande
• E-commerce, e-business ,e-governance
by
bhavesh lande
IT and innovations
by
bhavesh lande
organisations and information systems
by
bhavesh lande
IT stratergy and digital goods
by
bhavesh lande
Implement Mapreduce with suitable example using MongoDB.
by
bhavesh lande
Unnamed PL/SQL code block: Use of Control structure and Exception handling i...
by
bhavesh lande
database application using SQL DML statements: all types of Join, Sub-Query ...
by
bhavesh lande
database application using SQL DML statements: Insert, Select, Update, Delet...
by
bhavesh lande
Design and Develop SQL DDL statements which demonstrate the use of SQL objec...
by
bhavesh lande
working with python
by
bhavesh lande
applications and advantages of python
by
bhavesh lande
introduction of python in data science
by
bhavesh lande
tools
by
bhavesh lande
data scientists and their role
by
bhavesh lande
applications
by
bhavesh lande
aggregation and indexing with suitable example using MongoDB.
1.
Practical No:11 Problem Statement:
Implement aggregation and indexing with suitable example using MongoDB. *Index* > use prac11 switched to db prac11 > db.stud.insert({_id:1,rollno:28,name:"Shail",dept:10}); > db.stud.insert({_id:2,rollno:26,name:"Shivesh",dept:10}); > db.stud.find(); { "_id" : 1, "rollno" : 28, "name" : "Shail", "dept" : 10 } { "_id" : 2, "rollno" : 26, "name" : "Shivesh", "dept" : 10 } > db.stud.insert({_id:3,rollno:22,name:"Alquama",dept:11}); > db.stud.insert({_id:4,rollno:33,name:"Swapnil",dept:11}); > > db.stud.find().pretty(); { "_id" : 1, "rollno" : 28, "name" : "Shail", "dept" : 10 } { "_id" : 2, "rollno" : 26, "name" : "Shivesh", "dept" : 10 } { "_id" : 3, "rollno" : 22, "name" : "Alquama", "dept" : 11 } { "_id" : 4, "rollno" : 33, "name" : "Swapnil", "dept" : 11 } db.stud.getIndexes(); [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "prac11.stud", "name" : "_id_" } ] db.stud.ensureIndex({name:1}); > db.stud.getIndexes(); [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "prac11.stud", "name" : "_id_" }, { "v" : 1, "key" : { "name" : 1 }, "ns" : "prac11.stud", "name" : "name_1" } db.stud.getIndexes(); [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "prac11.stud", "name" : "_id_" }, {
2.
"v" : 1, "key"
: { "name" : 1 }, "ns" : "prac11.stud", "name" : "name_1" }, { "v" : 1, "key" : { "rollno" : 1 }, "unique" : true, "ns" : "prac11.stud", "name" : "rollno_1" } db.system.indexes.find(); { "v" : 1, "key" : { "_id" : 1 }, "ns" : "prac11.stud", "name" : "_id_" } { "v" : 1, "key" : { "name" : 1 }, "ns" : "prac11.stud", "name" : "name_1" } { "v" : 1, "key" : { "rollno" : 1 }, "unique" : true, "ns" : "prac11.stud", "name" : "rollno_1" } { "v" : 1, "key" : { "_id" : 1 }, "ns" : "prac11.item", "name" : "_id_" } -------------------------------------------------------------------------------- ------------------------ *Aggergation* db.item.insert({Customer:'a',Name:"Mouse",Quantity:3,Price:200}); db.item.insert({Customer:'a',Name:"Keyboard",Quantity:5,Price:800}); > db.item.insert({Customer:'b',Name:"Mouse",Quantity:3,Price:500}); > db.item.insert({Customer:'a',Name:"Keyboard",Quantity:4,Price:2000}); > db.item.find().pretty(); { "_id" : ObjectId("5d8f128237dc2e143b51bde5"), "Customer" : "a", "Name" : "Mouse", "Quantity" : 3, "Price" : 200 } { "_id" : ObjectId("5d8f12a637dc2e143b51bde6"), "Customer" : "a", "Name" : "Keyboard", "Quantity" : 5, "Price" : 800 } { "_id" : ObjectId("5d8f12be37dc2e143b51bde7"), "Customer" : "b", "Name" : "Mouse", "Quantity" : 3, "Price" : 500 } { "_id" : ObjectId("5d8f12da37dc2e143b51bde8"), "Customer" : "a", "Name" : "Keyboard", "Quantity" : 4, "Price" : 2000 } > db.item.aggregate([{$group:{_id:"Name",total:{$sum:1}}}]); { "result" : [ { "_id" : "Name", "total" : 4 } ], "ok" : 1 }
Download