Remarks
Could use standard database techniques, any of the join algorithms.
Other comments:
- A profile is treated as the base entity rather than a user. Eg: email per profile rather than per user
- Can group selected documents by user (they actually do this in another paper …)