If you want to retrieve a single record quickly in a database, what should you do?
Create a report.
Conduct a query.
Sort all records in ascending order and scroll until you find it.
Conduct a search.
It depends on your database system, but most of the database system, you had to do the indexes for it and then conduct a query by ID or something else.