# Formulas cannot reference a DB directly?

**URL:** <https://community.fibery.io/t/formulas-cannot-reference-a-db-directly/3076>\
**Category:** Get Help\
**Tags:** automations, formulas\
**Created:** [July 15, 2022, 6:16pm UTC](https://community.fibery.io/t/formulas-cannot-reference-a-db-directly/3076 "2022-07-15T18:16:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matt\_Blais](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/matt_blais/32/1464_2.png) [@Matt\_Blais](https://community.fibery.io/u/Matt_Blais)\
**Post date:** [July 15, 2022, 6:16pm UTC](https://community.fibery.io/t/formulas-cannot-reference-a-db-directly/3076/1 "2022-07-15T18:16:03Z")

</div>

Maybe I’m crazy, but I thought in Formulas we used to be able to reference any DB directly (and then filter it, etc).

Or maybe this was only available in Rules?

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [July 15, 2022, 7:58pm UTC](https://community.fibery.io/t/formulas-cannot-reference-a-db-directly/3076/2 "2022-07-15T19:58:32Z")

</div>

> [@Matt\_Blais](#):
>
> this was only available in Rules

Yes.  
We sometimes refer to this as ‘entity query’ and it works fine in automations since it is only evaluated once (when the automation is run).

Doing the same in formulas is tricky, since anywhere such a query was used would need to be re-evaluated every time any entity in the queried database was created, updated or deleted.  
This puts quite a load on the formula engine.
