This Week's Trending Top

This Month's Trending Top

This Year's Trending Top

mbklein
When running my tests, I sometimes see an error that looks like [error] Postgrex.Protocol (#PID<0.788.0>) disconnected: ** (DBConn...
New
nevakrien
So I have been stuck for a alot of time tryi g to figure out how to get a vector db for parge vectors that can do KNN. Its suprisingly co...
New
princemaple
Ok this is… more than weird It’s also consistent during insert_all with conflicts. I’m trying to back fill some missing data from bac...
New
hugoestr
I need to communicate to an existing database. I would like to have a schema for the table that I will query. Do I need to create the sch...
New
rodloboz
Is there any way to do SQL type inference/value casting when I have a raw SQL statement without having access to the underlying Ecto sche...
New
chocolatedonut
Besides (over)logging every code-path leading to Repo.insert_all, is it possible to make Postgrex and/or ecto_sql log the exact, failing ...
New

Last Three Year's Trending Top

pinksynth
Hi all! First time posting, let me know if I can structure my question better. I am using Ecto migrations on a project and need to add c...
New
sahilpaudel
I have raised an issue at ecto_sql issue_link Adding it here to reach out to larger community. I have updated my ecto_sql_3.0 to ecto_s...
New
Kabie
How can I achieve such query in Ecto? postgres=> SELECT * FROM (VALUES (1,2,3,4), (5,6,7,8)) AS foo (a,b,c,d); a | b | c | d ---+--...
New
freewebwithme
I need some help to understand writing test for async function For example I have a function def send_notification({:ok, nessage}, to, ...
New
mgpld
According to page https://hexdocs.pm/ecto/getting-started.html: NOTE: Your PostgreSQL database may be setup to not require a username ...
New
caslu
Hi everyone :wave:, I know there’s a lot of other questions and discussions about this subject, but most of them were asked a long time a...
New
fireproofsocks
I’m working on debugging a TransactionRetryWithProtoRefreshError error that comes up from time to time on an app using CockroachDB. The ...
New
zoedsoupe
Hello community! I’m starting to implement an all-in-one library/SDK for Supabase services for Elixir and the roadmap can be seen on the ...
New
nathany
Is there a way to stream data TO the database with Ecto? I’m working on using the COPY command to load CSV data directly into Postgres. ...
New
gbaird
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
maz
I’m getting an query error when attempting to apply a conflict strategy here at line 38: progress_track.ex · GitHub The idea is that if ...
New
dli
I use Repo.insert_all to bulk insert ~100m rows in chunks. After each chunk, some outdated data based on the insert’s RETURNING is delete...
New
IwoHerka
With ecto_sql version 3.10.2 (for MySQL), the following code: Repo.transaction(fn -> Repo.query!("SET TRANSACTION ISOLATION LEVEL R...
New
besteman
Hey! My team and I are migrating away from Mariaex and Ecto 2 to Ecto 3 and myxql. We have all the main changes done and everything is ...
New
chocolatedonut
Why does removing on: true from a keyword query result in a warning? missing :on in join, defaulting to on: true. The :on option is d...
New

Trending Over Three Years Top

thiagomajesk
Hello everyone, I was working on a project and was faced with this problem and I’d like some input from you on the subject. Imagine this ...
New
_toni
Hello, When one is within the Mix context it’s possible to run $ mix run priv/repo/seeds.exs Which will evaluate code like the followi...
New
dmitriid
{:ecto_sql, "~> 3.4"}, {:phoenix, "~> 1.5.8"}, {:phoenix_ecto, "~> 4.1"}, {:myxql, "~> 0.4.0"}, Currently ...
New
Sanjibukai
Hi everybody, Edit for TL;DR: How I can use SQL array_agg aggregate function with an Ecto fragment. Particularly how I can nest the se...
New
pejrich
I’ve noticed recently that the idle time for my queries is creeping up over 1k ms. [debug] QUERY OK source="chats" db=0.8ms idle=1272.7m...
New
nhpip
Hi, We are using DBConnection and Ecto with a Postgres DB. Occasionally we get errors like below in the Postgres log: 2022-09-17 12:36:...
New
alexcastano
Hello, I want to store a structured raw input in a JSONB column. This raw input is already in an embedded schema because it has been pre...
New
lkananowicz
Hi, I am looking for a way to monitor connections pool of Ecto repo. Basically we want to measure maximum capacity of our application, so...
New
Fire-Dragon-DoL
Hello, I’m being curious about why Ecto needs explicit casting when passing arguments to a query. I faced the following situation: amou...
New
mbklein
We’ve got a kind of producer/consumer workflow happening, involving three processes. The main process inserts a whole bunch of records i...
New
franckstifler
Hi. I have a query that looks like this: from p in Payment, group_by: fragment("extract(hour from ?) as hour", p.inserted_at), select: {...
New
steven7
Hi I am trying to preload associations for a subquery like such: from(p in Post, distinct: [p.group_id], order_by: [asc: p.published_dat...
New
augnustin
Are there some Ecto gurus here? I have this SQL function which works amazingly well (using Postgres 11.6) CREATE EXTENSION IF NOT EXIST...
New
madili
Hi, Looking at the documentation of the transaction/2 function it should return a {:ok, result} or {:error, reason} tuple. However, if I...
New
saverio-kantox
I need to set up a “audit” table in the database, where changes to records trigger an insert on some other table. Writing the trigger is ...
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