[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-8766?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14718149#comment-14718149
 ] 

ASF GitHub Bot commented on CLOUDSTACK-8766:
--------------------------------------------

Github user bhaisaab commented on the pull request:

    https://github.com/apache/cloudstack/pull/751#issuecomment-135661968
  
    Did some API request size and time comparisons for various pagesizes 
against a large template collection (more than 4000 templates across 30+ zones);
    
    Page Size | API response size (KB) | Time (ms)                              
        
    --------- | ---------------------- | ---------                              
        
    20 | 15.8 | 360                                                             
        
    100 | 77.1 | 366                                                            
        
    150 | 117 | 448                                                             
                                                                                
                              
    200 | 157 | 408                                                             
        
    250 | 199 | 440                                                             
        
    500 | 402 | 791
    
    Based on this data, on the lowest side pagesize of 100 seems alright for 
the time taken vs the payload size, but has more risk on a lower reduced list 
size (not enough to render a scroll); on the higher side pagesize of 200-250 
seems alright considering roughly similar time.
    
    Refs:
    
    ps=20
    
![20](https://cloud.githubusercontent.com/assets/95203/9541300/6e7a97d0-4d84-11e5-804c-c7efc228ff9b.png)
    
    ps=100
    
![100](https://cloud.githubusercontent.com/assets/95203/9541303/71af4932-4d84-11e5-917e-4236278fc2da.png)
    
    ps=150
    
![150](https://cloud.githubusercontent.com/assets/95203/9541306/74924bd6-4d84-11e5-988b-5b5ccbe5e1c0.png)
    
    ps=200
    
![200](https://cloud.githubusercontent.com/assets/95203/9541310/7eda7672-4d84-11e5-9f68-ac775554d60d.png)
    
    ps=250
    
![250](https://cloud.githubusercontent.com/assets/95203/9541311/7edba98e-4d84-11e5-99a8-74f9b13039d7.png)
    
    ps=500
    
![500](https://cloud.githubusercontent.com/assets/95203/9541312/7ee1a910-4d84-11e5-8bbc-3088d3655301.png)


> In zone based template listings, infinite scrolling pagination is broken
> ------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-8766
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8766
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>    Affects Versions: 4.5.0, 4.5.1, 4.5.2
>            Reporter: Rohit Yadav
>            Assignee: Rohit Yadav
>            Priority: Minor
>             Fix For: 4.5.3, 4.6.0
>
>
> On the template page, when a template is select, goto Zones tab and scroll to 
> list all the templates. In case the number of zones are more than 20 there is 
> an infinite scrolling/listing issue as it does not paginate the result. The 
> fix would be to use listViewDataProvider to get pagination when requesting 
> the API.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to