Holochain Forum

Get object by value

Hi all. Apologies if there is an obvious answer, new to all this.

Looking through the documentation, examples and other implementations, it seems that the way to get objects is by Address/ID after sending a list of objects that exist, and I understand the reasoning for this.

I am wondering how this scales if you have potentially thousands or more objects needing to be referenced, and if there is a way I could for example, get the profile of a user by their username, rather than by their Address/ID.

Thanks.

It is possible, like this. But you need to link both the value and the address at the app level, somehow. This will be different for every kind of link in your happ.