Assembling and loading user profiles

When a player loads his gameworld the client application needs to load the data from all the buckets. This can be accomplished with by running a single N1QL query. The query on the right assembles a the blobs from all three buckets for a user with key “zid-jungle-0001”.

SELECT * 
FROM jungleville AS game-data 
JOIN  jungleville_stats AS stats
    KEY "zid-jungle-stats-0001" 
NEST  jungleville_inbox AS inbox 
    KEY "zid-jungle-inbox-0001" 
WHERE game-data.uuid="zid-jungle-0001"