<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic HubDB GraphQL query causing page to load slowly in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/HubDB-GraphQL-query-causing-page-to-load-slowly/m-p/1089798#M41672</link>
    <description>&lt;P&gt;Hi all,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I've noticed recently that the HubDB queries for our blog and experiments blog appear to load very slowly.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;In some instances we're waiting for 3-4 seconds before the page loads. There aren't many render-blocking scripts on the page that would cause this, so I'm curious if something in the implementation is off.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Here's an example of our HubDB query for a blog page:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;# $search: "{{ request.query_dict.search || ''}}"&lt;BR /&gt;# $topics: "{{ request.query_dict.topics || ''}}"&lt;BR /&gt;# $offset: "{{ request.query_dict.page ? (request.query_dict.page - 1) * 10 : 0}}"&lt;BR /&gt;# $blogGroup: "{{ content.content_group_id || ''}}"&lt;BR /&gt;# $authorPage: "{{ blog_author.id || ''}}"&lt;BR /&gt;# $tagPage: "{{ tag || ''}}"&lt;BR /&gt;&lt;BR /&gt;query blogPosts($topics: [Number], $search: String, $offset: Int, $blogGroup: [String], $authorPage: [String], $tagPage: [String]) {&lt;BR /&gt;BLOG {&lt;BR /&gt;post_collection(&lt;BR /&gt;limit: 10&lt;BR /&gt;offset: $offset&lt;BR /&gt;orderBy: publish_date__desc&lt;BR /&gt;filter: {&lt;BR /&gt;name__icontains: $search&lt;BR /&gt;tag_ids__in: $topics&lt;BR /&gt;state__eq: "Published"&lt;BR /&gt;content_group_id__in: $blogGroup&lt;BR /&gt;blog_author_id__in: $authorPage&lt;BR /&gt;post_tag_slug__in: $tagPage&lt;BR /&gt;}&lt;BR /&gt;) {&lt;BR /&gt;items {&lt;BR /&gt;blog_author {&lt;BR /&gt;display_name&lt;BR /&gt;bio&lt;BR /&gt;}&lt;BR /&gt;blog_tags {&lt;BR /&gt;name&lt;BR /&gt;slug&lt;BR /&gt;}&lt;BR /&gt;featured_image&lt;BR /&gt;featured_image_alt_text&lt;BR /&gt;post_summary&lt;BR /&gt;url&lt;BR /&gt;name&lt;BR /&gt;publish_date&lt;BR /&gt;tag_ids&lt;BR /&gt;}&lt;BR /&gt;total&lt;BR /&gt;hasMore&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;We are using query_dict for filtering on different tags, but we had been using that for a while and weren't noticing any huge issues.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Any insights here would be much appreciated!&lt;/P&gt;</description>
    <pubDate>Sun, 05 Jan 2025 09:50:38 GMT</pubDate>
    <dc:creator>AMarsden4</dc:creator>
    <dc:date>2025-01-05T09:50:38Z</dc:date>
    <item>
      <title>HubDB GraphQL query causing page to load slowly</title>
      <link>https://community.hubspot.com/t5/CMS-Development/HubDB-GraphQL-query-causing-page-to-load-slowly/m-p/1089798#M41672</link>
      <description>&lt;P&gt;Hi all,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I've noticed recently that the HubDB queries for our blog and experiments blog appear to load very slowly.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;In some instances we're waiting for 3-4 seconds before the page loads. There aren't many render-blocking scripts on the page that would cause this, so I'm curious if something in the implementation is off.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Here's an example of our HubDB query for a blog page:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;# $search: "{{ request.query_dict.search || ''}}"&lt;BR /&gt;# $topics: "{{ request.query_dict.topics || ''}}"&lt;BR /&gt;# $offset: "{{ request.query_dict.page ? (request.query_dict.page - 1) * 10 : 0}}"&lt;BR /&gt;# $blogGroup: "{{ content.content_group_id || ''}}"&lt;BR /&gt;# $authorPage: "{{ blog_author.id || ''}}"&lt;BR /&gt;# $tagPage: "{{ tag || ''}}"&lt;BR /&gt;&lt;BR /&gt;query blogPosts($topics: [Number], $search: String, $offset: Int, $blogGroup: [String], $authorPage: [String], $tagPage: [String]) {&lt;BR /&gt;BLOG {&lt;BR /&gt;post_collection(&lt;BR /&gt;limit: 10&lt;BR /&gt;offset: $offset&lt;BR /&gt;orderBy: publish_date__desc&lt;BR /&gt;filter: {&lt;BR /&gt;name__icontains: $search&lt;BR /&gt;tag_ids__in: $topics&lt;BR /&gt;state__eq: "Published"&lt;BR /&gt;content_group_id__in: $blogGroup&lt;BR /&gt;blog_author_id__in: $authorPage&lt;BR /&gt;post_tag_slug__in: $tagPage&lt;BR /&gt;}&lt;BR /&gt;) {&lt;BR /&gt;items {&lt;BR /&gt;blog_author {&lt;BR /&gt;display_name&lt;BR /&gt;bio&lt;BR /&gt;}&lt;BR /&gt;blog_tags {&lt;BR /&gt;name&lt;BR /&gt;slug&lt;BR /&gt;}&lt;BR /&gt;featured_image&lt;BR /&gt;featured_image_alt_text&lt;BR /&gt;post_summary&lt;BR /&gt;url&lt;BR /&gt;name&lt;BR /&gt;publish_date&lt;BR /&gt;tag_ids&lt;BR /&gt;}&lt;BR /&gt;total&lt;BR /&gt;hasMore&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;We are using query_dict for filtering on different tags, but we had been using that for a while and weren't noticing any huge issues.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Any insights here would be much appreciated!&lt;/P&gt;</description>
      <pubDate>Sun, 05 Jan 2025 09:50:38 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/HubDB-GraphQL-query-causing-page-to-load-slowly/m-p/1089798#M41672</guid>
      <dc:creator>AMarsden4</dc:creator>
      <dc:date>2025-01-05T09:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: HubDB GraphQL query causing page to load slowly</title>
      <link>https://community.hubspot.com/t5/CMS-Development/HubDB-GraphQL-query-causing-page-to-load-slowly/m-p/1090198#M41677</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/823616"&gt;@AMarsden4&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Thanks for your question. I hope your 20235 is off to a great start. I'd like to invite some of our community experts to the converstaion — hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/101258"&gt;@Teun&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/163809"&gt;@JBrake&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/17186"&gt;@Anton&lt;/a&gt;, do&amp;nbsp;you have any experience here?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much for taking a look! — Jaycee&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2025 16:34:21 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/HubDB-GraphQL-query-causing-page-to-load-slowly/m-p/1090198#M41677</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2025-01-06T16:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: HubDB GraphQL query causing page to load slowly</title>
      <link>https://community.hubspot.com/t5/CMS-Development/HubDB-GraphQL-query-causing-page-to-load-slowly/m-p/1094849#M41772</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074"&gt;@Jaycee_Lewis&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/101258"&gt;@Teun&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/163809"&gt;@JBrake&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/17186"&gt;@Anton&lt;/a&gt;&amp;nbsp;Hey all, following up here. Any help is much appreciated. Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2025 18:20:46 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/HubDB-GraphQL-query-causing-page-to-load-slowly/m-p/1094849#M41772</guid>
      <dc:creator>AMarsden4</dc:creator>
      <dc:date>2025-01-15T18:20:46Z</dc:date>
    </item>
  </channel>
</rss>

