[Pulp-list] pagination design

Jay Dobies jason.dobies at redhat.com
Fri Mar 11 20:51:04 UTC 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 03/11/2011 03:04 PM, Jason L Connor wrote:
> On Fri, 2011-03-11 at 14:47 -0500, Jay Dobies wrote:
>> Looks good. One question on deferred fields. Is that basically a way
>> of
>> limiting what data comes back per thing requested? Can you show an
>> example of what that looks like? There are examples for the start and
>> max (which look good) but I'm curious to see how the deferred fields
>> would look.
>>
> 
> Thank you. A deferred fields request would look something like this:
> 
> GET /repositories/<some id>/packages/?start=x&max=y
> 
> This request would get a range of the package ids associated with the
> repository <some id>
> 
> So very similar to the GET request on a collection.

So in essence, it's just omitting large sets of data from paginated
objects and retrieving them through other queries? I was
misinterpretting, I was thinking of the idea of specifying at query time
what fields you wanted returned. This makes sense, thanks for the
clarification.


- -- 
Jay Dobies
RHCE# 805008743336126
Freenode: jdob
http://pulpproject.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJNeos4AAoJEOMmcTqOSQHCy44H/RZ9OZptIh1vVAEY23Lt4MHI
eVP/BwAJdarVsC6pAtyoHmesZDtUGrGSFGBeBFq1G+MUjIz0Z+5v9fNNJASfZC1w
DbVOgDWTn7L0VftzIyG9lEi9r9c+dht6nqyzHD+c3+dgiBsan5nCYPT+vxl6MZ09
VhCQ73qQuA/KwNgdSkzggcbSg9huHM7aYywuVQXIk0tCu1mxBE7N23pDALCiBzMu
tyWT/EVjEon7mJNeUdllnVJ9oqlYsIPQTfoHNHu9mEUIScQ6qFsEsLREF9CesAdT
2QeeY0zb4xq3UYwY72/gvSMwNOnH57E5k8fDL4PmBytwBT+92PvDmCjbyds2RiM=
=GNfU
-----END PGP SIGNATURE-----




More information about the Pulp-list mailing list