Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
A full rebuild of the views cache should be done only once.
See #1889198: Performance problem in _views_fetch_data, multiple unnecessary cache rebuilds for more details.
Porting (and trying to improve) the patch there to D8.
Comment | File | Size | Author |
---|---|---|---|
#1 | 1889810-views-cache-rebuilds.patch | 1.26 KB | Pedro Lozano |
Comments
Comment #1
Pedro Lozano CreditAttribution: Pedro Lozano commentedComment #2
andypostcoming from #1889198: Performance problem in _views_fetch_data, multiple unnecessary cache rebuilds
Is it possible to make a test for this? it seems that caused by broken views that uses fields/tables that does not exists
Comment #5
estoyausenteThis file has been modified, I think that now this issue can be close.
Comment #10
edurenye CreditAttribution: edurenye at ENDPHASYS Technologies commentedI don't think this should be closed, we should check it more carefully.
I checked with webprofiler to open a view and it says that the view was rendered 35 times, and shows that all the displays of the view were rendered multiple times, when I'm just opening a page with one view and one display.
I think this might be related to this issue or maybe there is a issue with search_api as I'm using it in this view. But I think is a core problem related to cache rebuilds.
The fact that this file does not exist anymore, just means that the error might happen somewhere else, not that the problem is solved.
Comment #18
larowlanCan we get steps to reproduce the issue, starting from 'install drupal' - thanks
Comment #19
quietone CreditAttribution: quietone at PreviousNext commentedI think this was addressed in #1944674: Improve performance of ViewsDataCache
I am closing this as outdated.