force sideloaded associated models to have fixed page size#96
force sideloaded associated models to have fixed page size#96edlenox wants to merge 1 commit intoRestPack:masterfrom
Conversation
|
Thanks, this is something that I'd like to add support for. I've a few ideas... |
|
On a similar note, I'm finding I want my side loaded entities to be either fully loaded, or the same page size as set on my query.
|
|
My current thoughts on this are that "side loading" isn't really Side loading/links seems better suited to many-to-many relationships where On Thu, Oct 30, 2014 at 3:42 AM, Aaron Hansen notifications@github.com
|
This is something I did a while ago. It is a hack to allow all of my sideloaded resources of a paged model to be loaded rather than just the same total number as the primary resource.
Currently what appears to happen is that you get the page size number of sideloads which isn't what I want.
Ideally the page size would apply to the individual items in the paged model, but I couldn't figure out the sql to do that in one call and I didn't want to be doing a call per model, so I rolled back the option code I wrote to allow it to be passed in.
I think primarily this is an sql problem.
It is an ugly hack, so I'd like to see something nicer.