Getting Started
What is MongoDB?
Install / Config
C.R.U.D. Ops
Data Modeling
Database Mgmt
Create, Read, Update and Delete Operations
Performing Queries: Using the Cursor
What is a
cursor
?
.
Pointer to the result set of a query
You need to
iterate
through a cursor to retrieve results
Cursors timeout after 10 minutes of inactivity
How do you produce a
cursor
?
.
Cursor produced from
find()
Performance is enhanced if find() uses an index
How do you use the
cursor
?
.
MongoDB command shell iterates automatically
When using a driver, use a loop
+
o
-