Database performance tuning involves activities to ensure queries are processed in the minimum amount of time. A DBMS processes queries in three phases - parsing, execution, and fetching. Indexes are crucial for speeding up data access by facilitating operations like searching and sorting. Query optimization involves the DBMS choosing the most efficient plan for accessing data, such as which indexes to use.