# Method Directive long execution time

**URL:** <https://www.epiusers.help/t/method-directive-long-execution-time/92635>\
**Category:** Epicor ERP 10\
**Tags:** e10\
**Created:** [July 21, 2022, 2:15pm UTC](https://www.epiusers.help/t/method-directive-long-execution-time/92635 "2022-07-21T14:15:56Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Doug.C](https://www.epiusers.help/user_avatar/www.epiusers.help/doug.c/32/26714_2.png) [@Doug.C](https://www.epiusers.help/u/Doug.C)\
**Post date:** [July 21, 2022, 3:37pm UTC](https://www.epiusers.help/t/method-directive-long-execution-time/92635/6 "2022-07-21T15:37:15Z")

</div>

I would get the data you need in a variable from the ds table and then use it as a criteria in the DB table:

> [@BPM SPEED Helpful Hint - be careful how you "Join"](https://www.epiusers.help/t/bpm-speed-helpful-hint-be-careful-how-you-join/53872):
>
> Help Hint for you all… I have been doing some refactoring of BPMs for efficiency. Finding mistakes made from prior sins of myself and others. You can probably find some ways to improve your end user’s experience by doing some of these same changes… note that this refactoring takes about 5 minutes, but saves users lots of frustrations. THIS example is applicable to all users (including Cloud). Also, as an encouragement to those NOT attending Insights… I learned about the need for this trick last…

---

_[View the full topic](https://www.epiusers.help/t/method-directive-long-execution-time/92635)._
