This project is read-only.

Joining voting content

Oct 12, 2012 at 8:40 PM

Hi, 

I'm working on some performance optimizations and I'm running into a snag with the vote and favorite modules that are using the base API. 

My question is: can I somehow eager load the like and favorite info with my content query? Because the model isn't based on the contentpartrecord through inheritance, I can't use the Join<VoteRecord>() operator. 

So I get 2 extra queries per contentitem, on pages loading 50+ items. It adds up. 

Turning the like and favoriteparts off (undesired, but a performance test) actually doesn't help, because apparently the shapes are still rendered and just not displayed using placement.info.

It's not really a problem with the voting module, but I thought you might be able to help

Rinze