Stop Loading Large Ecto Fields by Default

Hey folks! Let's warm up with a joke: It is forbidden to laugh out loud in Hawaii. You have to keep it to a low ha. A low ha. Aloha. Got it? Good! Let's begin. The Problem Let's say you want to store a map in an Ecto.Schema . You add a :map field which Ecto converts into an optimized jsonb column in Postgres. You trust the awesomeness of Postgres and start dumping data into it. Everything works…