Bug 850908

Summary: Add pagination to /consumers
Product: [Community] Candlepin Reporter: Vincent Batts <vbatts>
Component: candlepinAssignee: candlepin-bugs
Status: CLOSED WONTFIX QA Contact: Eric Sammons <esammons>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 0.9CC: bkearney
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-10-02 17:25:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Vincent Batts 2012-08-22 17:09:24 UTC
Description of problem:
Presently, with over 41,000 consumers
  """SELECT COUNT(1) FROM `cp_consumer`;"""
the '/consumers' call never returns. 
(It will keep the HTTP session alive though :-)

Version-Release number of selected component (if applicable):
0.5.x and 0.7.3

How reproducible:

Steps to Reproduce:
1. Have a ton of consumers ( > 41000 )
2. call /consumers
Actual results:
never returns

Expected results:
A list of consumers. Potentially segmenting the expected results with pagination parameters.

Additional info: