What is the primary purpose of an index in a database?
-
A
To enforce data integrity constraints
-
B
To speed up data retrieval operations at the cost of additional storage and slower writes
-
C
To encrypt data for security purposes
-
D
To automatically back up the database