To create indexes, go to the DB Overview
tab on the left side of your screen, then click on the New Index
button.
We will create three indexes for the database, users_index
, appointment_index
, and appointment_today_index
.
The users_index
index will enable you to scroll through data in the Users
collection using the id
field as a parameter to match.
The appointment_index
index will enable you to scroll through data in the Appointments
collection using the user_id
field as a parameter to match.
The appointment_today_index
index will allow you to scroll through data in the Appointments
collection.
It will use the user_id
and date_due
fields as parameters to match.
After clicking on the New Index
button, you need to select the collection you want to connect to this index. Choose the collection, enter a name for your index, terms for your index, and values. Ticking the Unique
checkbox ensures the data entered for the term is unique. The terms field specifies what data you wan