You’d be best storing the user on the booking and then searching for the bookings for the user.

A user could have hundreds/thousands of bookings and loading that list whenever the user is loaded (users are loaded on page load every time) would be super heavy. (the list would be loaded even it if isn’t used on the page since it’s stored on the user which is loaded on every page load).

Further, you’d be best to page the bookings in the repeating group to reduce the data sent to the page. Paged to 10 or 20 would be a good starting point.

If you frequently accessed the most recent booking you may want to hold that on the user so you don’t have to search for it constantly.

1 Like