Exercises
Last updated
Last updated
Create an index in ascending order for the writer field and get the index information.
Again, print a query plan using executionStats corresponding to the query that finds a writer, Kim.
Create the compound index on id in descending order and writer in ascending order.
Drop all indexes on the blog collection.
Index 생성
Create a unique index to doc_id in ascending order
Try to build a unique index to line_num
Create a sparse index to intersect in ascending order
Create a unique and sparse index to intersect_id in ascending order
Check the index information
Compare the results below two cases. (metro collection)
Show the first two documents, sorting with doc_id in ascending order.
Using intersect index by hint(), show the first two documents
Sort doc_id in ascending order
Use explain() above each case (executionStats).
No Index
Indexed