Hey Adam, thanks for your reply.
Is there anyway we can achieve this using the current database structure rather than having to create new datatypes? Our app is fairly mature now and got a few thousand users so don’t particularly want to reinvent the wheel (although we are planning to move the favourites system off to supabase at some point). For now though we have this very simple structure:
Songs Table : Has a “tags” LIST field on it.
Users Table: Has a “favourite songs” LIST field on it.
The users favourited songs are also already stored on a page ‘fav-list’ state (a list variable) as well, if that helps, so it’s already in memory.
Is there any decent way of returning the most used tags, via a search, without having to create new data tables?
Many thanks