I have a simple many to many relationship (users/groups). I have a situation where I’ve loaded all the users (probably around 600 records or so), and then I load the groups. Doing this the first time causes the page to hang for at least 10 seconds while the user/group objects map to each other in the background. Both models are set to
Is there a way to speed this mapping up, or at least defer it somehow so it doesn’t impact the responsiveness. The slow page doesn’t actually need that mapping to be consistent, but because its the first time all the groups are loaded, the mapping takes place even though I’m not explicitly needing the relationship at that stage.