Latest #ash-postgres Threads 
I have few node microservices connected to single postgres db. I also have an elixir service for realtime message passing between BE and ...
New
Hi,
I stumbled over this snippet of a query generated by an update action:
SET “updated_at” = (CASE WHEN $1::timestamp != r0.“last_quer...
New
Hi! First, I’d like to thank the Ash team. Ash solves so many problems! I’m planning to incrementally migrate my whole app to it.
I’ve g...
New
I have this statement in my resource to create a index:
statement :hnsw_embedding_index do
up """
CREATE INDEX IF ...
New
I have this Ash.Query in my code:
CronJob
|> Ash.Query.for_read(:due)
|> Ash.Query.lock("FOR UPDATE SKIP L...
New
I have a nested set of action calls, like this:
Action A → Action B
When the change function of Action B adds an error to its changeset...
New
Is there support for using Postgres ENUM with Ash.Type.Enum?
I do know that you can do that if you create the migration yourself like it...
New
I’m evaluating migrating an existing application to ash and it’s looking pretty good so far.
However, I got stuck at this: My app curren...
New
I am currently faced with the following problem:
I have a Person resource
There are several other resource in the same domain that refe...
New
Hi,
since my project will require some analytics, I’ve decided to use Postgres + DuckDB via pg_duckdb extension. I’ve spinned up an offi...
New
This Week's Trending
This Month's Trending
This Year's Trending
Hi!
Any thoughts on how to get the above 2 to work together?
Best,
Terry
New
Introduction
Ash seems to be great with regular relational data. However when I tried it out for a hobby project, where I had to represen...
New
Hi! I’ve just started using Ash due to its multitenancy capabilities. Overall experience is great so far, but I am considering following ...
New
I just spent half a day trying to figure out how to get around this:
(DBConnection.OwnershipError) cannot find ownership process for #P...
New
I have two resources, Teams and Users, and these are related using the relationship resource Members. I’m trying to use manage_relationsh...
New
I realized that Ash generates timestamps in the application, which is what I want. To be sure, I removed the default values for those fie...
New
Hi everyone
I’ve recently started to give Ash a try with a greenfield, small project for a customer of mine. So far I really like the ab...
New
I’m just getting my head around basic AshAuthorization and still struggle with some of the relationship DSL… and I’ve no idea how to tack...
New
I’m evaluating migrating an existing application to ash and it’s looking pretty good so far.
However, I got stuck at this: My app curren...
New
Has anyone set up their Ash Framework Postgres app deployment (and, most importantly, migration) on Fly.io?
I’m trying to figure out wha...
New
In my multi-tenant application, when the user registers, I want to create :
a user record
an organisation / tenant
and some records int...
New
Is there support for using Postgres ENUM with Ash.Type.Enum?
I do know that you can do that if you create the migration yourself like it...
New
I’m trying to understand the Ash filter expression syntax for working with json arrays within a jsonb column in ash_postgres.
I have a j...
New
Hi,
I stumbled over this snippet of a query generated by an update action:
SET “updated_at” = (CASE WHEN $1::timestamp != r0.“last_quer...
New
Say I’ve got a resource
defmodule Log do
...
attributes do
uuid_primary_key :id
attribute :fiber_id, :string
attribute :pr...
New
Last Three Year's Trending
Hi all
I have started a brand new project. Usually, I would have created a pair of timestamp attributes created_at and updated_at.
Now ...
New
Hi there,
I’m working with ash now a couple of weeks and I’m quite a big fan :slight_smile: but now I’m struggling with a - so it seems ...
New
I am trying to parse a user generated filter that will apply to jsonb field (that is just a map, not an embedded resource).
The field is...
New
I am deeply confused by what’s going on.
I have two entities – Sprint and ActivityStereotype. The former is the “parent,” meaning, spri...
New
I have a system that needs to bulk load a bunch of data from time to time.
One way to speed that load process is to delete some of the i...
New
You have specified a default value for a type that cannot be explicitly converted to an Ecto default
I’m having some trouble with EctoMigrationDefault – probably because I’m a novice with Elixir custom types and protocols, and I’m clearly...
New
Hi,
I am trying to use Ash in a library, and I am wondering if that is a good idea?
Seems like the biggest problem I have, is that my l...
New
Hey, is there a way to use a custom index as a identity for upsert?
For example, I have a resource that has two nullable fields.
I want...
New
Hi There,
On the mission to find a ash friendly way to add versioning to my project. I found ash-paper-trail.
My requirements were:
p...
New
Is there any global configuration I change use to change both the default Ash.UUID.generate/0 function and gen_random_uuid() functions fo...
New
In my system I’m adding a second repo to connect. To do that I did the following changes:
config/config.exs
config :marketplace, Market...
New
I am trying to filter records by a calculated interval.
My resource has these two attributes:
attribute :retry_at, :utc_datetime, a...
New
Where Post has_many Comments, I’d like to define a calculation in Post that essentially produces the following query. What’s the expressi...
New
Hello,
I am trying to get search results with postgres trgm like below
SELECT t, similarity(t, 'word') AS sml
FROM test_trgm
WHERE ...
New
So, I’m importing millions of rows in my system to a resource that has some fields (around 7 fields) that are embedded resources.
I’m in...
New
Trending Over Three Years
I have the following resource in my system:
defmodule Pacman.Markets.Record do
@moduledoc false
use Ash.Resource,
data_layer: A...
New
Question
Is it possible to use a calculation in the grouping for an aggregate?
Problem
I am attempting to group by a calculated value ...
New
Does ash have the concept of “computed” fields? Ie something like
attributes do
attribute :status, :atom, constraints: [:open, :closed...
New
Ash has a pretty cool feature that will auto generate migrations for changes in the resources. This is done by having “snapshot” json fil...
New
I feel like there should be an easy way to do this, without creating a (relatively complicated) custom validation. But after combing the ...
New
Let’s say I have this resource;
defmodule A do
...
relationships do
belongs_to :b, B do
allow_nil? false
attribute_w...
New
Following the documentation at Ash.Query — ash v2.21.5, if I write Ash.Query.build(LGS.Operacional.Estadia, limit: 1) |> LGS.Operacion...
New
My recent Ash postgres migration includes the following, and it’s causing the above error on Render.com because their managed postgres in...
New
Hi,
Given an AshResource, how do I load data using raw sql statements?
PS. Use case: We have an existing sql load script that has compl...
New
We have an Ash resource defined as polymorphic:
defmodule MyApp.Location do
use Ash.Resource, data_layer: AshPostgres.DataLayer
p...
New
Has anyone had the experience of adding Ash to a project that’s already in production?
I’m trying to figure out what all you would do, a...
New
Hello, fellow learners.
I am learning the Ash framework. As a part of my learning journey, I have set up an elixir project with Ash as a...
New
I’m starting to play with Ash, because I feel it will give me the DRYness of Rails and the clarity of Elixir & Phoenix. I roughly fol...
New
Does Ash support defining exclusion constraints on resources with the DSL (maybe that’s a Postgres specific thing?).
I’m wanting to enfo...
New
Porting a multi-lingual site from using a native XML database to Postgres with JSONB fields, I’m running into problems when I want to fil...
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







