If the database system is taking too long to process an SQL statement, perform the following steps:
..
1. Use the EXPLAIN statement to find out which search strategy the Optimizer is using for the SQL statement.
2. Check your database design.