Context (previous thread):
Extremely slow loading of Payments collection, https://community.forestadmin.com/t/extremely-slow-loading-of-payments-collection-in-forest-admin-agent-1-64-5-datasource-mongoose-1-8-9/8224/9
Versions:
-
@forestadmin/agent1.64.5 -
@forestadmin/datasource-mongoose1.8.9 -
Current flattening: legacy (only as a temporary workaround)
Problems (concise):
-
Performance: Legacy fixes the main Payments list, but opening Payments via one-to-many (Payout → Payments) is still very slow.
-
Editing: Smart fields created with
addFieldare not editable in the UI even withreplaceFieldWriting. -
Search/Filters: To search those smart fields we added
replaceFieldOperatorhandlers, but those fields don’t behave in the filter builder / aren’t usable as filters.
Request / Preference:
-
Guidance to resolve O2M performance and smart-field edit/filter behavior.
-
Prefer a solution that does not rely on legacy flattening, if possible (legacy is only a stop-gap for performance).
-
We can’t share full schema/aggregations publicly; if needed, please initiate a private discussion or schedule a short call to review schema and profiling data.