By generating pointers to where data is kept within a database, indexing makes it easier to query columns. Assume you need to locate a specific piece of data in a vast database. To retrieve this data from the database, the computer will search every row until it finds it.