I have a model with a has-many relationship.  In most cases, the parent has 
only a few children -- less than a dozen, so returning related records is 
handled quite elegantly by the normal approach.

However, I have a handful of those models which have tens of thousands of 
children.  Obviously this breaks everything.  Now were I returning this as 
a list I'd simply paginate the results; is there a way to do that with 
related resources?

I'm also happy to basically skip the serializer/view queryset for those 
records, or to arbitrarily limit them to some small number (trying to slice 
the query set manually doesn't work because there is no longer a query set. 
 sigh)

anyway, hoping for some guidance.  I can't believe I'm the first to have 
encountered this problem by hours of searching are going nowhere...

-- 
You received this message because you are subscribed to the Google Groups 
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to