# Performance question: multiple collections using tabs

**URL:** <https://community.weweb.io/t/performance-question-multiple-collections-using-tabs/4567>\
**Category:** How do I?\
**Tags:** collection-page\
**Created:** [September 25, 2023, 8:08am UTC](https://community.weweb.io/t/performance-question-multiple-collections-using-tabs/4567 "2023-09-25T08:08:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![FJP84](https://avatars.discourse-cdn.com/v4/letter/f/db5fbb/32.png) [@FJP84](https://community.weweb.io/u/FJP84)\
**Post date:** [September 25, 2023, 8:08am UTC](https://community.weweb.io/t/performance-question-multiple-collections-using-tabs/4567/1 "2023-09-25T08:08:20Z")

</div>

Hi there,

I am creating a page using tabs. Each tab has table/datagrid to render different Xano data collections.

How does weweb cope with this? Will it fetch all the collections at once on page load or can I make it that only the collection for the current tab is fetched?

Thanks.

---

<div class="post-metadata">

**Author:** ![Broberto](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/broberto/32/5918_2.png) [@Broberto](https://community.weweb.io/u/Broberto)\
**Post date:** [September 25, 2023, 12:25pm UTC](https://community.weweb.io/t/performance-question-multiple-collections-using-tabs/4567/2 "2023-09-25T12:25:01Z")

</div>

You can do both with workflows

---

<div class="post-metadata">

**Author:** ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)\
**Post date:** [September 25, 2023, 2:26pm UTC](https://community.weweb.io/t/performance-question-multiple-collections-using-tabs/4567/3 "2023-09-25T14:26:55Z")

</div>

Hi @FJP84 👋

By default, all the collections used on a page are loaded on page load but you can disable that behavior for a specific collection (which is probably what you would want to do for your tabs use case):

 ![CleanShot 2023-09-25 at 16.20.18@2x](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/5/5e8452df70090044f60c59a294f35b810df12887.png)

As @Broberto mentioned, you can then use a workflow to get the data you need when you need it with the “Fetch collection” action.

In the example below, we fetch a different collection depending on the value in our `selectedTab` variable:

 ![CleanShot 2023-09-25 at 16.26.10@2x](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/c/c60dda3d8d2e757c159dcfb687350217117749df.png)

---

<div class="post-metadata">

**Author:** ![FJP84](https://avatars.discourse-cdn.com/v4/letter/f/db5fbb/32.png) [@FJP84](https://community.weweb.io/u/FJP84)\
**Post date:** [November 28, 2023, 6:01pm UTC](https://community.weweb.io/t/performance-question-multiple-collections-using-tabs/4567/4 "2023-11-28T18:01:02Z")

</div>

Hi @Joyce additional question.

I sis8use the network inspector yet, but lets say I have the following Xano collections

A) GET /Projects  
B) GET /Projects/{id}

Then I have two pages

Projects overview  
This contains a list of projects using collection A.

Project details  
This contains a form using collection B.

I my assumption correct that on Projects Overview only collection A is loaded. And on Project details only collection B is loaded?

---

<div class="post-metadata">

**Author:** ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)\
**Post date:** [December 13, 2023, 4:09pm UTC](https://community.weweb.io/t/performance-question-multiple-collections-using-tabs/4567/5 "2023-12-13T16:09:13Z")

</div>

Hi @FJP84 👋

If you have “Fetch this collection automatically” on both collections A and B, then yes 🙂
