[ 
https://issues.apache.org/jira/browse/OODT-68?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12968957#action_12968957
 ] 

Brian Foster commented on OODT-68:
----------------------------------


- and actually . . . in order to get first page of a product type set and 
number of products in that product type it currently causes 5 queries instead 
of just one . . . getFirstPage(ProductType) requires two (one to get num of 
hits and another to get products) . . . getLastProductPage(ProductType) calls 
getFirstPage() and then gets products for last page . . . if a query takes 
20-30 seconds (typical for large data sets) that is then 5x30 which is a LONG 
time for a user to wait for a GUI to load

> Add Number of Product Hits to ProductPage
> -----------------------------------------
>
>                 Key: OODT-68
>                 URL: https://issues.apache.org/jira/browse/OODT-68
>             Project: OODT
>          Issue Type: Improvement
>          Components: file manager
>    Affects Versions: 0.1-incubating
>         Environment: none
>            Reporter: Brian Foster
>            Assignee: Brian Foster
>            Priority: Minor
>             Fix For: 0.2
>
>
> - By adding get number of hits the method setTotalPages(int) is no longer 
> needed; getTotalPages will calculate its return value based on page size and 
> total hits
> - This also allows the number of products to be determined by just getting 
> the first page, instead of getting last page which internally requires 
> DataSourceCatalog to get first page and last page

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to