# HubDB call count for foreign ID

**URL:** <https://community.hubspot.com/t/hubdb-call-count-for-foreign-id/125569>\
**Category:** CMS Development\
**Tags:** hubdb\
**Created:** [February 6, 2025, 3:23pm UTC](https://community.hubspot.com/t/hubdb-call-count-for-foreign-id/125569 "2025-02-06T15:23:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ben\_NH](https://avatars.discourse-cdn.com/v4/letter/b/53a042/32.png) [@Ben\_NH](https://community.hubspot.com/u/Ben_NH)\
**Post date:** [February 6, 2025, 3:23pm UTC](https://community.hubspot.com/t/hubdb-call-count-for-foreign-id/125569/1 "2025-02-06T15:23:56Z")

</div>

I understand there’s a limit to the amount of times you can call a HubDB table. Could someone please clarify the following:

1. Is the 10 limit per module or per page?
2. When using a foreign ID to bring in data from another table, does this count as a new call?
3. Can a foreign ID be ‘daisy-chained’ for example table A needs to be linked to table B, which itself also needs to be linked to table C. Can table A bring in data directly from C via B? If so, how would this be coded?

Thanks

---

<div class="post-metadata">

**Author:** ![melindagreen](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/melindagreen/32/73804_2.png) [@melindagreen](https://community.hubspot.com/u/melindagreen)\
**Post date:** [February 7, 2025, 2:48pm UTC](https://community.hubspot.com/t/hubdb-call-count-for-foreign-id/125569/2 "2025-02-07T14:48:54Z")

</div>

Ben, per the documentation below (and I’ve run up against it in practice, too), it’s 10 calls to hubdb\_table\_rows per **page**.  
afaik. foreign ID relationships don’t re-invoke hubdb\_table\_rows and therefore shouldn’t add to the total. But, in my work, I haven’t run up to that limit using foreign IDs yet.

The recommended usage, at least for a single table, is to pull the entire hubdb table into a local variable and then operate on that, instead of calling back to hubdb repeatedly.

> **[HubDB - HubSpot docs](https://developers.hubspot.com/docs/cms/start-building/features/storage/hubdb)**
>
> Build data-driven content with HubDB, HubSpot's native database tool.
