# HubDb Multilevel Dynamic Page + Prerender

**URL:** <https://community.hubspot.com/t/hubdb-multilevel-dynamic-page-prerender/65282>\
**Category:** CMS Development\
**Tags:** hubdb\
**Created:** [September 16, 2022, 5:05pm UTC](https://community.hubspot.com/t/hubdb-multilevel-dynamic-page-prerender/65282 "2022-09-16T17:05:03Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gabrisan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/gabrisan/32/104055_2.png) [@Gabrisan](https://community.hubspot.com/u/Gabrisan)\
**Post date:** [September 16, 2022, 5:05pm UTC](https://community.hubspot.com/t/hubdb-multilevel-dynamic-page-prerender/65282/1 "2022-09-16T17:05:03Z")

</div>

Hi there!  
I hope that someone could help me to understand a situation with prerender and HubDb.  
We developed a Multilevel dynamic pages website  
3 level with child tables.  
We are trying to improve the perofrmance with the Prerender but it seems that after the first page, the second depth of the child tables we cannot prerender the page.  
We remove every request.query\_dict and other unsupported variables.  
In the debugOnly we could see this after the first depth level of dynamic page (images attached)

 ![Gabrisan_0-1663347804055.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/3X/e/d/edfddbaee3eb7f18b45e5b8a7b05c772d24ff330.jpeg)

There’s a way to prerender the dynamic pages?  
Thanks in advance 🙂  
Gabriele

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [September 19, 2022, 5:16pm UTC](https://community.hubspot.com/t/hubdb-multilevel-dynamic-page-prerender/65282/2 "2022-09-19T17:16:04Z")

</div>

Hi, @Gabrisan 👋 Thanks for reaching out and for including those details. Hey, @DanielSanchez @piersg @stefen, have you tackled a challenge like this in previous client work?

Thank you for taking a look! — Jaycee

---

<div class="post-metadata">

**Author:** ![stefen](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/stefen/32/29274_2.png) [@stefen](https://community.hubspot.com/u/stefen)\
**Post date:** [September 20, 2022, 1:17pm UTC](https://community.hubspot.com/t/hubdb-multilevel-dynamic-page-prerender/65282/3 "2022-09-20T13:17:23Z")

</div>

@Gabrisan [@Jaycee\_Lewis](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074) Can’t say i’ve dealt with this before. But if there isn’t any official support for this, have you considered using your own bot to load each url every so many hours?

---

<div class="post-metadata">

**Author:** ![Gabrisan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/gabrisan/32/104055_2.png) [@Gabrisan](https://community.hubspot.com/u/Gabrisan)\
**Post date:** [September 20, 2022, 1:24pm UTC](https://community.hubspot.com/t/hubdb-multilevel-dynamic-page-prerender/65282/4 "2022-09-20T13:24:07Z")

</div>

Ciao Stefen, thanks for the answer,  
To be honest, I’m a little bit confused, what did you mean with “ **using your own bot to load each url every so many hours** ”?  
Unfortunately there’s no documentation about HubDb and Prerender.

> **[Accounts Dashboard | HubSpot](https://app.hubspot.com/myaccounts?next=developerdocs&redirect=%2Fcms%2Fdeveloper-reference%2Fcdn%2Fprerendering)**

For what can I see, it seems that the prerender doesn’t work with child tables. (so the second and the third depth of child).  
But I cannot find any suggestion 🙂  
Gabriele

---

<div class="post-metadata">

**Author:** ![stefen](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/stefen/32/29274_2.png) [@stefen](https://community.hubspot.com/u/stefen)\
**Post date:** [October 3, 2022, 3:01pm UTC](https://community.hubspot.com/t/hubdb-multilevel-dynamic-page-prerender/65282/5 "2022-10-03T15:01:34Z")

</div>

@Gabrisan I’m assuming if you load the page once it should be pre-rendered. So, to automate that you could configure your own crawler to load each page in the hubdb table every so often and they would all be prerendered.

---

<div class="post-metadata">

**Author:** ![Gabrisan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/gabrisan/32/104055_2.png) [@Gabrisan](https://community.hubspot.com/u/Gabrisan)\
**Post date:** [October 6, 2022, 8:03am UTC](https://community.hubspot.com/t/hubdb-multilevel-dynamic-page-prerender/65282/6 "2022-10-06T08:03:43Z")

</div>

Hi Stefen 🙂  
Mmm, you mean to load each sub dynamic page and then check if them are prerentered?  
That’s work for the same session, second load is much quicly that the first.  
But not for the first load, as if i change browser, the load time is higher.  
Insted, the full rendered page (include the first level of dynamic page), is loaded quickly also if I change the browser.  
You can see here.  
**First level of dynamic page** _(no advice under the prerender)_

 ![Gabrisan_0-1665043157939.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/3X/6/2/623708d59cf73ac3c554c51d9aa39f48ab6482bd.jpeg)

**Child page dynamic** _(there’s also a new advice about the prerender)_

 ![Gabrisan_1-1665043262645.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/3X/e/8/e84b321e098715a1c0b118949c37aec21c64e05b.jpeg)

Im almost sure that the problem is here but still doesn’t really understand what do you mean with crawler. May i’ve miss something 🙂  
Thanks again,  
Gabri

---

<div class="post-metadata">

**Author:** ![stefen](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/stefen/32/29274_2.png) [@stefen](https://community.hubspot.com/u/stefen)\
**Post date:** [October 6, 2022, 3:37pm UTC](https://community.hubspot.com/t/hubdb-multilevel-dynamic-page-prerender/65282/7 "2022-10-06T15:37:04Z")

</div>

@Gabrisan it’s a shot in the dark so maybe it still won’t prerender. Seems odd that HubSpot wouldn’t save the rendered file after it’s been compiled though. Have you tried reaching out to support?

---

<div class="post-metadata">

**Author:** ![Gabrisan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/gabrisan/32/104055_2.png) [@Gabrisan](https://community.hubspot.com/u/Gabrisan)\
**Post date:** [October 6, 2022, 3:42pm UTC](https://community.hubspot.com/t/hubdb-multilevel-dynamic-page-prerender/65282/8 "2022-10-06T15:42:42Z")

</div>

Hei Stefen,  
We didn’t try, but sure I will 🙂  
Gabri

---

<div class="post-metadata">

**Author:** ![Gabrisan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/gabrisan/32/104055_2.png) [@Gabrisan](https://community.hubspot.com/u/Gabrisan)\
**Post date:** [September 20, 2022, 9:20am UTC](https://community.hubspot.com/t/hubdb-multilevel-dynamic-page-prerender/65282/9 "2022-09-20T09:20:45Z")

</div>

Ciao Jaycee 🙂 Thank you! Wish to resolve this, because almost the whole website was build it with the dynamic pages and we have problem with Core Web Vitals and TTFB!  
Gabriele

---

<div class="post-metadata">

**Author:** ![gsantos1](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/gsantos1/32/61905_2.png) [@gsantos1](https://community.hubspot.com/u/gsantos1)\
**Post date:** [October 3, 2022, 2:56pm UTC](https://community.hubspot.com/t/hubdb-multilevel-dynamic-page-prerender/65282/10 "2022-10-03T14:56:24Z")

</div>

Same here.

I ditched other CMS to work with HubCMS and HubDB, the documentation never mentioned pre-render didn’t worked with dynamic pages.

Now the whole project is built with HubDB tables, and I’m having problems with core web vitals and TTFB.

---

<div class="post-metadata">

**Author:** ![gsantos1](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/gsantos1/32/61905_2.png) [@gsantos1](https://community.hubspot.com/u/gsantos1)\
**Post date:** [October 6, 2022, 3:42pm UTC](https://community.hubspot.com/t/hubdb-multilevel-dynamic-page-prerender/65282/11 "2022-10-06T15:42:59Z")

</div>

@stefen @Gabrisan

Hi

I contacted the support, and pre-render is disabled for HubDB pages. Here it is:

“We have disabled pre-rendering hubdb dynamic pages because of lagging – hubdb tables with larger number of rows may cause a high volume of pages be re-rendered. We disabled pe-rendering them and disabled serving the pre-rendered content of them before we can get the lagging issue resolved.”

---

<div class="post-metadata">

**Author:** ![Gabrisan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/gabrisan/32/104055_2.png) [@Gabrisan](https://community.hubspot.com/u/Gabrisan)\
**Post date:** [October 6, 2022, 3:50pm UTC](https://community.hubspot.com/t/hubdb-multilevel-dynamic-page-prerender/65282/12 "2022-10-06T15:50:13Z")

</div>

Hi @gsantos1  
Thanks! I didn’t see you previous message 🙂  
Great to know that! Hope they will fix the lagging problem soon! They say more about it?  
They should also be update the documentation because it’s a very big problem.  
Thanks again!  
Gabri

---

<div class="post-metadata">

**Author:** ![gsantos1](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/gsantos1/32/61905_2.png) [@gsantos1](https://community.hubspot.com/u/gsantos1)\
**Post date:** [October 7, 2022, 9:31am UTC](https://community.hubspot.com/t/hubdb-multilevel-dynamic-page-prerender/65282/13 "2022-10-07T09:31:46Z")

</div>

Hey @Gabrisan

I mentioned on ticket the lack of information on the docs regarding HubDB and prerendering. I agree, there should be an alert about that, this is hitting hard on performance for dynamic pages.

I’m waiting for a ticket update now, let’s see, I will keep you updated here on this topic.

Cheers!
