[Proposal] Allow :load_in_query option on embeds_many

43 views
Skip to first unread message

Po Chen

unread,
Aug 8, 2023, 1:28:49 AM8/8/23
to elixir-ecto
Currently it raises.

== Compilation error in file lib/app/purchase/demand.ex ==
** (ArgumentError) invalid option :load_in_query for embeds_many/3
    (ecto 3.10.3) lib/ecto/schema.ex:2264: Ecto.Schema.check_options!/3
    (ecto 3.10.3) lib/ecto/schema.ex:2106: Ecto.Schema.__embeds_many__/4
    ....

Was wondering why it is not allowed? Shouldn't embedded fields work just like other fields?
I'd like to skip loading some embeds_many to prevent possbile load performance issue.

Regards,
Po Chen

José Valim

unread,
Aug 8, 2023, 4:56:05 AM8/8/23
to elixi...@googlegroups.com
Done in main.

--
You received this message because you are subscribed to the Google Groups "elixir-ecto" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-ecto...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-ecto/6acbdd1b-93dc-4303-b74e-86ec9192ea43n%40googlegroups.com.

Po Chen

unread,
Aug 8, 2023, 5:29:01 AM8/8/23
to elixi...@googlegroups.com
😲 wow

You received this message because you are subscribed to a topic in the Google Groups "elixir-ecto" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/elixir-ecto/5MhuTuJ6GY4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to elixir-ecto...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-ecto/CAGnRm4J5tL3CUMd3tM6VPGvEkHttG5KNx_G3x5pWuUWTH0sjfQ%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages