# Optimization Tips

When using the Supabase.js plugin, you can set it up in a way that you can specify what data you wish to return. By doing so you can greatly speed up Data retrieval and decrease bandwidth and cost.&#x20;

Let's say we have an Admin to manage our blog posts. We'd like to create a Repeating Group to have an overview of our articles. Since we don't need every value for that we can setup the plugin to return only certain values:&#x20;

<figure><img src="/files/kwBIJZjMBgwa1Y6UzRkG" alt=""><figcaption></figcaption></figure>

With this setup we only return the data we actually want to use inside my repeating group, like `title, unique_id, created_at, thumbnail.` We can also return the referenced Category's name just to show it visually as well.&#x20;

Once we have all this data, let's setup a workflow where if we click on one of the posts, it redirect us to another page or part of the app where we can actually edit all of the data of the single post.&#x20;

Now that we only need to return a single post we can actually return all of the data like so:

<figure><img src="/files/a8IS0w57GZuWugrMf3mt" alt=""><figcaption></figcaption></figure>

Here we return all the fields of the post, and also all the fields for the related category. Make sure you've set it up properly the same with this [guide](/supabase.js-bubble-plugin/setup/supabase-data.md).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.relevat.hu/supabase.js-bubble-plugin/setup/supabase-data/optimization-tips.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
