oodt-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Foster (JIRA)" <j...@apache.org>
Subject [jira] Commented: (OODT-68) Add Number of Product Hits to ProductPage
Date Tue, 07 Dec 2010 08:06:08 GMT

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

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


- the patch would be backwards compatible . . . setTotalPages(int) should only be used by
Catalog implementations and each Catalog was doing its own number of page calculations (i.e.
has to be reimplemented for each Catalog implemented) -- setTotalPages(int) is the only method
which would be dropped . . . a setter method for number of hits would take its place.

- also with all this new gui development around the filemgr . . . paging is a heavily used
feature . . . having to double query just to get the first page and the number of hits i think
should be addressed -- it greatly affects page load time over large data sets





> 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.


Mime
View raw message