Best Practices for Implementing "Similar Projects" Section with Tags

Hey everyone,

I'm currently working on implementing a "Similar Projects" section on my project pages in Prismic. The goal is to display projects with similar tags as the current project, providing users with related content to explore.

However, I'm concerned about potential latency issues when querying all projects' details just to get their tags. This could introduce unnecessary overhead, especially for projects with heavy content like images and videos.

What are some best practices for efficiently implementing such a feature in Prismic? How can I minimize latency while still providing relevant and related content to users?

Any insights, tips, or alternative approaches would be greatly appreciated!

Thanks in advance.

Hi @yanislebzar7 ,

You can use the similar predicate to do this:

If you limit the results to a small number and statically deploy your website you won't need to worry about latency.

Thanks.