Searching the web on how does one “properly” do the equivalent of the two words counter_cache: true
clause from “the other framework” I found posts like:
They’re surely more than enough to get me started, yet the question is if anything maybe changed since 2016 in the Elixir/Phoenix world in regards to counter caching? Any new patterns/functions/… emerged? Or do those posts still represent the state of the union today?
Update: I also found:
https://hexdocs.pm/ecto/Ecto.Changeset.html#prepare_changes/2-example
which suggests it all remains valid but if anyone has other interesting approaches, please share