| Summary: | [regresion] the log view queries the data 3 times from the model for each page load | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Marius Slavescu <slavescu> | ||||
| Component: | TPTP | Assignee: | Eugene Chan <ewchan> | ||||
| Status: | CLOSED FIXED | QA Contact: | |||||
| Severity: | critical | ||||||
| Priority: | P1 | CC: | jkubasta, stephen.francisco, zung | ||||
| Version: | unspecified | Keywords: | plan | ||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | closed460 | ||||||
| Attachments: |
|
||||||
|
Description
Marius Slavescu
Need investigation for a target. Marius, can you give more information for your findings? To reproduce, import a log file using large log resource support and then browse the log in Log Viewer, you should see that the allElements (filtered) list in the Log view content provider is populated 3 times for each refresh/page up/page down operation. Just to give a sense of the impact of this defect, the time to refresh the page (when large log is used) could be around 20s so if you multiply that by 3 you get 1 minute of wait instead. Page by page is much faster but you still don't want to wait 3 times more than the actual time spend to get the data from the database or in memory model. The larger the in memory model is the longer the time to build the list of filter events is. cannot be closed by i1 Is there any progress on this problem? (In reply to comment #5) > Is there any progress on this problem? > Hi. No. Not yet. =( Created attachment 66380 [details]
patch
proposed patch.
org.eclipse.tptp.platform.log.views.internal.views.LogContentProvider.rebuildAllElements(Object) was called multiple time on view open/refresh/page up/page down events. It is a regression introduced in the changes of org.eclipse.tptp.platform.log.views.internal.views.LogContentProvider.prepareFiltersAndSortAttributes().
The patch adopts the change made in prepareFiltersAndSortAttributes and have rebuildAllElements() called once per listed event.
Target i4, as it does not block i3 test pass. Approved by Project Lead and patch is submitted. As of TPTP 4.6.0, TPTP is in maintenance mode and focusing on improving quality by resolving relevant enhancements/defects and increasing test coverage through test creation, automation, Build Verification Tests (BVTs), and expanded run-time execution. As part of the TPTP Bugzilla housecleaning process (see http://wiki.eclipse.org/Bugzilla_Housecleaning_Processes), this enhancement/defect is verified/closed by the Project Lead since this originator of this enhancement/defect has an inactive Bugzilla account and considered to be fixed. If this enhancement/defect is still unresolved and reproducible in the latest TPTP release (http://www.eclipse.org/tptp/home/downloads/), please re-open. |