This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Dec 11, 2014, 7:35 AM
5 Posts

ViewPanel Performance Question

  • Category: Performance
  • Platform: Windows
  • Release: 8.5.3
  • Role:
  • Tags:
  • Replies: 2

Hi Guys,

 

Just want to ask if anyone knows how to fix my current issue. We all know Viewpanel is very simple and its uses are limited, but my problem is in the performance.

My view panel has categorized columns and whenever I expand/collapse, it "recounts entries" as per this post. This is actually a non problem if the documents in the view are just few, and it expands/collapse in less than a second. But when I paste the actual number of documents (16,000), expanding/collapsing takes as much as 5-6 seconds. (No fuzzy search, no pager, just plain viewpanel)

Now, some may advice me to use other ways like make a custom repeat control and stuff, but if I can, I'd rather not do tedious stuffs and work with what I already have.(Also saves me a lot of time)

I appreciate if any of you have any bit of idea on how to improve the performance or any workaround using viewpanel. DataCache property is not working btw (or if it does, it doesn't work in this case)

 

Thanks in advance!

Rex

Dec 11, 2014, 3:48 PM
453 Posts
You probably don't want to hear this but ....

In the long run I firmly believe that you would be well ahead of the game by considering changing to a different method. From some personal experience I started using viewPanels etc. After considerable time and effort I just found them to be way to difficult to get them to perform well and do what I wanted. I now use almost nothing but repeat controls. A bit of a learning curve but the result is well worth the effort. 

Depending on the need I build a categorized view in Notes then get the columnValues from the first column and set a viewScope variable (sat vsCat1) to those values. My top level Repeat is simply bound to viewScope.vsCat1. I add an Expand Collapse button to the repeat. then the second level repeat is wrapped in a panel where I define the datasource as a domino view and filter the return based on the category selected in the Expand. 

I have now extended this and built three custome controls ccCat1Template ccCat2Template and ccCat3Template now to create a new 'view' insert the appropriate customControl set a few custom properties and in less that 5 minutes I have it working. Yes it took me a few hours to get the structure of the templates (could add a 4 level but figure that if I need to go that deep maybe I need to rethink what I"m doing).

I understand that there is no such thing as one size fits all, but I have found that the repeat meets almost all my needs, but as they say "your experience might very".


This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal