List of "things" or do a search for

Hi,

There are a couple of ways to find specific data type and thing inside

  1. Store a list of “thing” B inside “thing” A
    and then look it up by: A’s B:first_item
    2)Store "thing"A as a single record in “thing” B
    and then look it up by: Do a search for thing B: Conditionals: A=A

I was thinking what is the preferrable method to do it? Is there any performance difference?

The Bubble manual gives a good explanation of the different methods, and when to use each. It’s worth a read

Connecting types with each other - Bubble Manual

1 Like

Thanks, I already read that, I’m looking for more practical cases.

For example in the article about a list of things:

The pro with this approach is that when you have a Post and want to look up which Tags it has, that’s easy! Let’s say you have a page with assigned data type of Post (each Post on its own page, for example) - to get the Tags would be Current Page's Tags . This is a quick query.

It’s true that it will work faster, for example, a list of tags will load faster on the page then Do a search for Post’s, but when you will want to create a filter for that list, in the case of “list of things” you will be forced to use “Filter by:” that will cause way larger time to update RG. (more than using “Do a search for” with conditionals.)