Open nallwhy opened 3 weeks ago
Let me know once you have a reproduction. Something to try to see if it impacts anything is setting this:
# config/test.exs
config :ash, :disable_async?, true
Did some benchmarking of reading 5k records each with 10 related records, and we perform only slightly worse than ecto (would still be worth optimizing of course):
Do you perhaps have any calculations or preparations on the relevant read actions that could be coming into play?
Describe the bug
Ash.load
exhibits significant performance issues when loading large resources -> large has_many associations.For example, there 5000 Bills and 10000 Pays.
To Reproduce
I haven’t yet replicated the issue, but I plan to set up a minimal test environment within a few days. We use PostgreSQL and multitenancy, which may affect the behavior.
Expected behavior
Ash.load is not too slow.
Runtime