Latest #preload Threads 
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
I have a couple of questions around preloading, please.
I’m using the ‘hierarchical relationships within a single schema’ example in the...
New
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
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
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
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
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
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
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
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
This Month's Trending
This Year's Trending
Last Three Year's Trending
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
Im trying to understand this section of the ecto documentation:
For many_to_many - the function receives the IDs of the parent associa...
New
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
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
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
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
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
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
Say I have the following schemas:
defmodule Articles do
schema "articles" do
field(:name, :string)
embeds_one(:foo, Foo)
end...
New
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
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
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
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
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
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
related resouces: simplest-way-to-do-a-recursive-self-join and schema example and details for this question. Here is the schema
defmodul...
New
Hello there im working on pagination on my query
first lets see my query
query
|> join(:left, [o], op in OrderProduct, as: :orde...
New
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
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
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
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
Latest on Elixir Forum
Get money off!
The Pragmatic Bookshelf
35% off any eBook
Manning Publications
45% off any item
ElixirCasts
10% off for life
The Pragmatic Studio
20% off any course
AppSignal
10% off for 12 months
Honeybadger
10% off for 12 months
Simply use coupon code "devtalk.com" or "elixirforum" at checkout!
Filter by Type:
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #exunit
- #elixirconf
- #discussion
- #javascript
- #podcasts
- #code-sync
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance
- #hex







