Latest #transactions Threads 
Background
I am studying the Transaction Script pattern, namely from a book called “Learning Domain Driven Design”.
For those of you u...
New
I have a “smart” put function that takes care of saving (creating or updating) a resource and all its sub resources automatically. It wor...
New
I am trying to code a bank transfer service using Elixir/Erlang, Postgrex and PostgreSQL.
Erlang v 26
Elixir v 1.16.0
Postgrex v 0.17....
New
Hello,
I am looking to more closely understand the advantages of the Repo.transact pattern and the quoted disadvantages of Ecto.Multi.
...
New
Hi guys,
I would like to know if anybody could help me.
I have a genserver that calls a TaskSupervisor to start tasks like this:
task...
New
Hi everyone. When running Ecto.insert_all([list_of_maps]) will ecto send one request to DB, or one insert request per map in the list? L...
New
Background
PS: the following situation describes an hypothetical scenario, where I own a company that sells things to customers.
I have ...
New
Hi everyone, it seems I can’t get out of this forum this week :sweat_smile: (you guys are awesome btw).
So, I got surprised by this beha...
New
I just wanted to share with you a small macro that has cleaned up many many lines of code for me.
Basically in my contexts I had this ki...
New
I’m in a situation where I have to insert 9000 registries in bulk into the database with Ecto in PostgreSQL.
I already have a dedicated ...
New
This Week's Trending
This Month's Trending
This Year's Trending
I have a situation similar to create and insert 2 associated models.
In my case User has_many Others and Others belongs_to User.
I want...
New
Background
I am studying the Transaction Script pattern, namely from a book called “Learning Domain Driven Design”.
For those of you u...
New
Last Three Year's Trending
Hello,
I am looking to more closely understand the advantages of the Repo.transact pattern and the quoted disadvantages of Ecto.Multi.
...
New
Hi everyone, it seems I can’t get out of this forum this week :sweat_smile: (you guys are awesome btw).
So, I got surprised by this beha...
New
I am trying to code a bank transfer service using Elixir/Erlang, Postgrex and PostgreSQL.
Erlang v 26
Elixir v 1.16.0
Postgrex v 0.17....
New
I have a “smart” put function that takes care of saving (creating or updating) a resource and all its sub resources automatically. It wor...
New
Trending Over Three Years
Hello everyone, when I run my unit test, I sometimes (not all the time) run into this error:
(Postgrex.Error) ERROR 40P01 (deadlock_det...
New
Background
PS: the following situation describes an hypothetical scenario, where I own a company that sells things to customers.
I have ...
New
I’m in a situation where I have to insert 9000 registries in bulk into the database with Ecto in PostgreSQL.
I already have a dedicated ...
New
I have to convert the following code using Repo.insert/2
def create_question(attrs) do
%Question{}
|> Question.creation_changeset...
New
I would like to ask for a “best practice” suggestion on how to wrap a user registration process in a transaction that will either:
stor...
New
Good Morning,
Could help me improve the code and apply a “transaction”, if one goes wrong …
I have never worked with “transaction”, so...
New
I just wanted to share with you a small macro that has cleaned up many many lines of code for me.
Basically in my contexts I had this ki...
New
Hello,
Sometimes in my system, I want to change something in the database and also do some other side-effect, for example, filling a cac...
New
I have a multi exactly below
%Ecto.Multi{
names: #MapSet<[:record_0]>,
operations: [
record_0: {:changeset,
#Ecto.Cha...
New
Hi everyone. When running Ecto.insert_all([list_of_maps]) will ecto send one request to DB, or one insert request per map in the list? L...
New
Hello,
I realize this is a DB question, but it involves Ecto and Postgrex so I thought I’d post here.
Suppose I have a multi with many ...
New
Hi everybody,
I have 2 entities: parent and child.
The parent entity have a life cycle so it transits from one status to another a.k.a ...
New
Hi guys,
I would like to know if anybody could help me.
I have a genserver that calls a TaskSupervisor to start tasks like this:
task...
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
- #api
- #processes
- #forms
- #metaprogramming
- #security
- #performance
- #hex







