Latest #preload Threads Top

slouchpie
Greetings comrades We are having a friendly discussion at work about whether it is better to always preload or to let it crash. For ill...
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
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
coen.bakker
TLDR; Is this a good way to writing context functions? Especially when preloads are nested, or for some other reason there is some comple...
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
coen.bakker
So I am trying to write a latest_edited_or_published_by_author/2 function that gets the n most recently updated stories or story drafts. ...
New
coen.bakker
I am trying to get back all the stories that are authored or coauthored by a particular author. I also want to preload all the authors on...
New
coen.bakker
Context I have several different types of books that are stored in my database. All books have some properties in common, but all book t...
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

This Week's Trending Top

This Month's Trending Top

This Year's Trending Top

Last Three Year's Trending Top

coen.bakker
TLDR; Is this a good way to writing context functions? Especially when preloads are nested, or for some other reason there is some comple...
New
jjabba
Im trying to understand this section of the ecto documentation: For many_to_many - the function receives the IDs of the parent associa...
New
slouchpie
Greetings comrades We are having a friendly discussion at work about whether it is better to always preload or to let it crash. For ill...
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
marick
Are there coding/naming conventions that make it more likely that when Ecto-using code is given an Animal object, it’s an Animal object w...
New
coen.bakker
Context I have several different types of books that are stored in my database. All books have some properties in common, but all book t...
New
coen.bakker
I am trying to get back all the stories that are authored or coauthored by a particular author. I also want to preload all the authors on...
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
huntz20
Hello there im working on pagination on my query first lets see my query query |> join(:left, [o], op in OrderProduct, as: :orde...
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 to get th...
New
Owens
I’m using Phx.Gen.Auth for authentication, and the navigation menu has a list of the user’s projects. This navigation is on every page in...
New
coen.bakker
So I am trying to write a latest_edited_or_published_by_author/2 function that gets the n most recently updated stories or story drafts. ...
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