I'm pulling out data from two Firebase JSON trees. The data from these trees are downloaded into two arrays. "users" and "activities"
the user array is structured
▿ Shoota.Userdata #0
- userId: "NhZZGwJQCGe2OGaNTwGvpPuQKNA2"
- name: "Christian"
- city: "Oslo"
- country: "Norway"
- profileImage: "https://firebasestorage.googleapis.com/v0/b/shoota-179610.appspot.com/o/profile_image%2FA176B8AD-EF7D-4C8F-BA7C-06B538795E9D?alt=media&token=025d8d1a-b610-4525-a154-73300599d84c"
the activity array is structured:
▿ Shoota.Activity #0
- _userId: "NhZZGwJQCGe2OGaNTwGvpPuQKNA2"
- _name: "Test"
- _type: "Pheasent"
- _weapon: "Browning 12 CAL"
- _kills: "12"
- _sightings: "100"
- _note: "Great day of hunting"
This data is used to populate a UITableView. What is the most efficient way to get the corresponding "profileImage" from "users" where Activity._userId = users.userId?