Latest #preload Threads Top

BrightEyesDavid
I have a couple of questions around preloading, please. I’m using the ‘hierarchical relationships within a single schema’ example in the...
New
maz
I’m doing a fairly complex join where I want to preload an array of ContentMediaItems (called :contents) that are nested in an associatio...
New
Nicemaker
I have a nested preload with a has_many relation and I would love to filter these references by a join I did on the top level, Here is my...
New
user20230119
If I have a schema like: Posts has many Comments has many Users Ecto will run three queries when preloading comments and users for a sin...
New
rmoretto
I’m trying to replicate the following PostgreSQL query with ecto: SELECT * FROM (SELECT * FROM event LIMIT 1000) as e LEFT JOIN event_ru...
New
benonymus
Hey I have a users - teams many to many setup through a users_teams table. In the team schema I have the following fields mapping to th...
New
bian2510
Hi guys I’m having troubles with one preload. I’m creating one property and I’m adding preloads, but when not have any register for has_...
New
jjabba
Im trying to understand this section of the ecto documentation: https://hexdocs.pm/ecto/Ecto.Query.html#preload/3-preload-functions For...
New
bagasprstyadi
Hi guys just wondering is it possible to preload but with a condition from the main query Let’s say I have a model named Post. A Post ha...
New
Owens
Hello all, I’m doing a DB call for the index page of a WhatsApp-style chat app. I have ChatsUsers -> Chats -> Messages. I need t...
New

This Week's Trending Top

This Month's Trending Top

This Year's Trending Top

Last Three Year's Trending Top

jjabba
Im trying to understand this section of the ecto documentation: https://hexdocs.pm/ecto/Ecto.Query.html#preload/3-preload-functions For...
New
maz
I’m doing a fairly complex join where I want to preload an array of ContentMediaItems (called :contents) that are nested in an associatio...
New
Nicemaker
I have a nested preload with a has_many relation and I would love to filter these references by a join I did on the top level, Here is my...
New
user20230119
If I have a schema like: Posts has many Comments has many Users Ecto will run three queries when preloading comments and users for a sin...
New
BrightEyesDavid
I have a couple of questions around preloading, please. I’m using the ‘hierarchical relationships within a single schema’ example in the...
New

Trending Over Three Years Top

Exadra37
I am trying to learn the basics of Ecto from Elixir School and I see in their examples that using this syntax Repo.all(from m in Movie, p...
New
thojanssens1
Say I have the following schemas: defmodule Articles do schema "articles" do field(:name, :string) embeds_one(:foo, Foo) end...
New
bian2510
Hi guys I’m having troubles with one preload. I’m creating one property and I’m adding preloads, but when not have any register for has_...
New
bagasprstyadi
Hi guys just wondering is it possible to preload but with a condition from the main query Let’s say I have a model named Post. A Post ha...
New
rmoretto
I’m trying to replicate the following PostgreSQL query with ecto: SELECT * FROM (SELECT * FROM event LIMIT 1000) as e LEFT JOIN event_ru...
New
tanweerdev
related resouces: simplest-way-to-do-a-recursive-self-join and schema example and details for this question. Here is the schema defmodul...
New
Owens
Hello all, I’m doing a DB call for the index page of a WhatsApp-style chat app. I have ChatsUsers -> Chats -> Messages. I need t...
New
benonymus
Hey I have a users - teams many to many setup through a users_teams table. In the team schema I have the following fields mapping to th...
New
  • Follow
  • Join
  • Shape
the conversation

Latest on Elixir Forum

Elixir Forum

Similar Portals

    None added yet

We're in Beta

About us Mission Statement