| Summary: | Filters in the all layers page return only the information shown in the page | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] Toaster | Reporter: | Belen Barros Pena <belen.barros.pena> | ||||
| Component: | toaster | Assignee: | Michael Wood <michael.g.wood> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | Medium | CC: | alexandru.damian, belen.barros.pena, cristiana.voicu, stanciux.mihail | ||||
| Version: | 1.7 | ||||||
| Target Milestone: | 1.8 M3 | ||||||
| Hardware: | x86 | ||||||
| OS: | Multiple | ||||||
| Whiteboard: | all layers page | ||||||
| OS type for building Yocto: | --- | Type of Regression: | New (Never tested) | ||||
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |||||
| Attachments: |
|
||||||
|
Description
Belen Barros Pena
2014-12-09 12:50:21 UTC
This seems to happen across Toaster. The attached screenshot (messed-filters.png) is from the project builds page. The 'All builds' counter should show 3 builds, but it shows only 1 (which is the number of builds shown by the filtered table). Created attachment 2383 [details]
messed-filters.png
The problem is that we're taking the total as the final number of objects returned after filtering them down. e.g Currently: compatible (hundreds results) -> filtered / ordered -> (tens results) -> equivalents (fewer results) -> get TOTAL Possible fix: compatible (hundreds results) -> equivalents (hundreds results) -> get TOTAL -> filtered / ordered (tens results) This is what I've done in the all machines page but it's really slow. The issue is that the equivalents is a really expensive operation which we only want to perform on the smallest dataset possible (which is usually after filters have been applied) A quick test on the layers page: Current: 176 queries run Possible fix: 482 queries run I'm wondering if we can just not have a number in the "All" part? I know that's not great but is probably a better user experience than the slow down. Can we cheat? And by this I mean, run the queries to get the counters for the non-all options, then add the results, and display that as the counter for the 'all' option. After some discussion, we have removed the filters from the all layers page due to performance issues. poky baa38a14c7d3a71b650b6362641bddbe7aaa3315 (Bitbake rev: ca5124d48d306921ac0f0499762ea5867644b0ef) |