The performance of AQL queries can be affected by various factors such as the complexity of the query, the number of the queried resource (repositories, builds), and the database performance. If an AQL query takes long to execute and is timing out, you may want to consider the following: