Closed (fixed)
Project:
Drupal core
Version:
9.3.x-dev
Component:
field_ui.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 May 2016 at 19:43 UTC
Updated:
24 Jun 2021 at 16:09 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
vinay15Hi joachim,
Shouldn't this be in feature request or plan category? It is obviously not affecting any functionality. Let me know more about this.
Thanks,
Vinay
Comment #3
joachim commentedThat page's help text says "This list shows all fields currently in use for easy reference."
Currently, it doesn't, and reference is not easy -- so that's a bug I think.
Comment #4
sagar ramgade commentedI think its better to provide filters like Field type, bundles and Show 'X' items per page rather than removing the pager. Allow users to select what they would like see and filter.
Comment #5
joachim commentedFilters would be nice, but I don't think adding filters means we shouldn't also remove the pager. And also that's rather changing the scope of this issue.
Comment #12
jcisio commentedThere is no input yet from the maintainers, but we can start with a simple patch.
Comment #15
tanubansal commentedTested #12, and its working fine on version 8 as well 9
This can be moved to RTBC
Comment #16
longwave+1 to this, it's much easier to open the listing and use ctrl+F to find a field than it is to click through all the pages on even a medium sized site.
Comment #17
catchGeneral +1 to this but it would be useful to get an idea of memory usage for this page on a complex site (and compare it to another big page like admin/people/permissions) before and after the patch.
Comment #20
joachim commentedOn a site with:
- 248 field.storage config files
- 476 field.field config files
I used https://www.drupal.org/project/memory_profiler to show maximum memory on the admin/reports/fields page.
Without patch: 32 MB - /en/admin/reports/fields
With patch: 26 MB - /en/admin/reports/fields
(And the admin/reports/dblog page is 32 MB)
I suspect that the way that config is queried from the DB means that all of them are getting loaded anyway.
Based on that result, I'm setting back to RTBC.
Comment #21
catch@joachim seems a bit odd that the patch would cause less memory usage rather than more, can you confirm you hit the pages a few times each before checking the memory limit to rule out cold caches? Or maybe we're saving some from having the pager itself, but can't think how.
Comment #22
joachim commentedMultiple reloads of the page without the patch show a range of values, from most recent:
12 MB - /en/admin/reports/fields
8 MB - /en/admin/reports/fields
12 MB - /en/admin/reports/fields
14 MB - /en/admin/reports/fields
26 MB - /en/admin/reports/fields -- that one was probably a cache warm up
With the patch:
30 MB - /en/admin/reports/fields
12 MB - /en/admin/reports/fields
22 MB - /en/admin/reports/fields
10 MB - /en/admin/reports/fields
In conclusion, computers are weird.
Comment #23
catchlol yes. Well from those numbers the worst case looks 4mb larger, and the best case looks 2mb larger, which is more inline with what I'd expect.
Given this is an admin-only page, and if a site has memory limit trouble from the number of fields, they'll probably have it on a different page first, I think that's fine.
Committed a6ee84d and pushed to 9.3.x. Thanks!
Comment #25
catch