-
Notifications
You must be signed in to change notification settings - Fork 54
Rationale behind 'Indexing'
Jaewook Byun edited this page Oct 6, 2016
·
2 revisions
Database usually supports indexing to facilitate fast information retrieval, and obviously you can create Mongo Indexes for any event/masterdata element keys, which are frequently queried.
Different demands on indexing keys let the very selection open to EPCIS users.
Therefore, we just provide an example to index 'eventTime' key for efficient GT_eventTime and LT_eventTime SimpleEventQuery.
db.collection.createIndex( <key and index type specification>, <options> )
db.EventData.createIndex({ "eventTime" : 1 })