Add a filter to modify the list of meta fields
S
Sofiane Achouba
Hi, we run a large website with a significant number of users. A user has a lot of dedicated meta fields for authentication and tokens. These are returned, which causes the admin page to freeze and take a long time to render. We have 500K users, and every user has around 5 custom meta fields.
I suggest adding a filter in the get_by in the PMXI_Model_List class to filter and change the SQL or the WHERE based on the table
Let me know if you have any questions
Trey Mills
Sofiane Achouba thanks for the suggestion!
If I'm understanding correctly, it sounds like turning off the ability to see existing custom fields in the drop-down when you click inside the custom fields "name" field would fix this as well, is that correct? If we did that, it would still be possible to manually type in the custom field(s) you need to import.
S
Sofiane Achouba
Trey Mills Hi
Yes, turning off the ability to see existing custom fields is a good solution, you can add a setting for that to enable/disable it.
Many thanks