# BAQ Timeout - Why?

**URL:** <https://www.epiusers.help/t/baq-timeout-why/52656>\
**Category:** Epicor ERP 10\
**Tags:** baq\
**Created:** [February 15, 2019, 7:50pm UTC](https://www.epiusers.help/t/baq-timeout-why/52656 "2019-02-15T19:50:35Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![Banderson](https://www.epiusers.help/user_avatar/www.epiusers.help/banderson/32/50875_2.png) [@Banderson](https://www.epiusers.help/u/Banderson)\
**Post date:** [February 25, 2019, 2:24pm UTC](https://www.epiusers.help/t/baq-timeout-why/52656/11 "2019-02-25T14:24:29Z")

</div>

If the query cannot be changed anymore (like adding all of the indexed fields you can), getting the SQL execution plan and opening it up in the a sql editor will give you a suggestion to add an index to the database. The thread that I linked below is one that I did that too and increased the performance immensely. Keep in mind, you don’t want to go crazy on adding indexes to the database, but if you have something you _really_ need, it can make a query that’s unusable, usable.

![image](https://www.epiusers.help/uploads/default/original/2X/c/c2103f384ebce47cb3eb05c530ee5418a41a3ebd.png)

> **[Unions and performance](https://www.epiusers.help/t/unions-and-performance/44009/35)**
>
> In case anyone is wondering, these are the things that I did to improve performance on this BAQ. I added the JobHead table to my sub-queries that had any epicor tables in it. I didn’t use any of the fields, but it seems to have helped. That was...

---

_[View the full topic](https://www.epiusers.help/t/baq-timeout-why/52656)._
