# \#database

**URL:** https://forum.elixirforum.com/tag/database/713.md

[Latest](https://forum.elixirforum.com/latest.md) · [Categories](https://forum.elixirforum.com/categories.md) · [Tags](https://forum.elixirforum.com/tags.md)

---

## [Hobbes - a low-level distributed database for the Elixir programming language](https://forum.elixirforum.com/t/hobbes-a-low-level-distributed-database-for-the-elixir-programming-language/73003)

<div class="topic-metadata">

**Author:** [@garrison](https://forum.elixirforum.com/u/garrison)\
**Replies:** 88\
**Last updated:** [September 21, 2026, 8:07am UTC](https://forum.elixirforum.com/t/hobbes-a-low-level-distributed-database-for-the-elixir-programming-language/73003 "2026-09-21T08:07:37Z")

</div>

Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage layer for Elixir applications. It’s designed to scale horizontally, replicate data acr…

---

## [How do you model different ‘types’ with totally different fields in Ecto?](https://forum.elixirforum.com/t/how-do-you-model-different-types-with-totally-different-fields-in-ecto/74944)

<div class="topic-metadata">

**Author:** [@PaleWatcher](https://forum.elixirforum.com/u/PaleWatcher)\
**Replies:** 22\
**Last updated:** [May 4, 2026, 6:06am UTC](https://forum.elixirforum.com/t/how-do-you-model-different-types-with-totally-different-fields-in-ecto/74944 "2026-05-04T06:06:16Z")

</div>

I’m trying to model something in Ecto where records share a few common fields, but depending on a type, they have completely different additional fields. Roughly: there’s an items table with the common stuff (type, sa…

---

## [Milvex - A Milvus Database client for Elixir](https://forum.elixirforum.com/t/milvex-a-milvus-database-client-for-elixir/74836)

<div class="topic-metadata">

**Author:** [@ycastor](https://forum.elixirforum.com/u/ycastor)\
**Replies:** 0\
**Last updated:** [March 31, 2026, 4:04pm UTC](https://forum.elixirforum.com/t/milvex-a-milvus-database-client-for-elixir/74836 "2026-03-31T16:04:42Z")

</div>

A couple of months ago we started looking for some Vector DBs, in the end we decided to go with Zilliz Milvus, and since they didn’t had an Elixir driver, we developed Milvex, which is built over the Milvus gRPC API. Rig…

---

## [Snowflex - a Snowflake library with an Ecto Adapter](https://forum.elixirforum.com/t/snowflex-a-snowflake-library-with-an-ecto-adapter/73629)

<div class="topic-metadata">

**Author:** [@ChaseGilliam](https://forum.elixirforum.com/u/ChaseGilliam)\
**Replies:** 6\
**Last updated:** [March 11, 2026, 6:34pm UTC](https://forum.elixirforum.com/t/snowflex-a-snowflake-library-with-an-ecto-adapter/73629 "2026-03-11T18:34:03Z")

</div>

Not long ago we released the 1.0 release of Snowflake which moved us off of ODBC(which is unmaintained in OTP) and onto the Snowflake HTTP api. This release is fully Ecto/DBConnection compatible and can run tests locally…

---

## [Blink - Fast bulk seeding for Ecto/PostgreSQL with clean, declarative syntax](https://forum.elixirforum.com/t/blink-fast-bulk-seeding-for-ecto-postgresql-with-clean-declarative-syntax/73935)

<div class="topic-metadata">

**Author:** [@coen.bakker](https://forum.elixirforum.com/u/coen.bakker)\
**Replies:** 6\
**Last updated:** [February 1, 2026, 1:38pm UTC](https://forum.elixirforum.com/t/blink-fast-bulk-seeding-for-ecto-postgresql-with-clean-declarative-syntax/73935 "2026-02-01T13:38:01Z")

</div>

Blink is a library for fast bulk data insertion into PostgreSQL databases using the COPY command. It provides a clean, declarative syntax for defining seeders. Features: Uses PostgreSQL’s COPY for fast bulk inserts Ta…

---

## [Signed SSL Certificate Errors with postgresql database (all self hosted)](https://forum.elixirforum.com/t/signed-ssl-certificate-errors-with-postgresql-database-all-self-hosted/74069)

<div class="topic-metadata">

**Author:** [@Trolleger](https://forum.elixirforum.com/u/Trolleger)\
**Replies:** 7\
**Last updated:** [January 26, 2026, 9:11pm UTC](https://forum.elixirforum.com/t/signed-ssl-certificate-errors-with-postgresql-database-all-self-hosted/74069 "2026-01-26T21:11:08Z")

</div>

Hello! I’ve been having a lot of troubles trying to set up ssl with postgresql and I tried looking also on the discord before asking but turns out there was another guy who was also having issues and made a post without …

---

## [Goblin - another embedded key-value database for Elixir](https://forum.elixirforum.com/t/goblin-another-embedded-key-value-database-for-elixir/73169)

<div class="topic-metadata">

**Author:** [@zteln](https://forum.elixirforum.com/u/zteln)\
**Replies:** 18\
**Last updated:** [January 8, 2026, 4:21pm UTC](https://forum.elixirforum.com/t/goblin-another-embedded-key-value-database-for-elixir/73169 "2026-01-08T16:21:32Z")

</div>

Hello Elixir community, I’ve written a small embedded key-value database in Elixir called Goblin. It’s based on the Log-Structured Merge (LSM) tree architecture and is a pure Elixir implementation with zero external dep…

---

## [CubDB - A pure-Elixir embedded database](https://forum.elixirforum.com/t/cubdb-a-pure-elixir-embedded-database/48631)

<div class="topic-metadata">

**Author:** [@lucaong](https://forum.elixirforum.com/u/lucaong)\
**Replies:** 14\
**Last updated:** [January 7, 2026, 6:27pm UTC](https://forum.elixirforum.com/t/cubdb-a-pure-elixir-embedded-database/48631 "2026-01-07T18:27:04Z")

</div>

CubDB is an embedded database written in pure Elixir, designed for robustness and minimal use of resources. It strives to be as developer-friendly as possible. Some of you, especially in the Nerves community, already kn…

---

## [What could be the best way to fetch large data from database? Is it using Stream.resource or Repo.stream and Repo.transaction?](https://forum.elixirforum.com/t/what-could-be-the-best-way-to-fetch-large-data-from-database-is-it-using-stream-resource-or-repo-stream-and-repo-transaction/73044)

<div class="topic-metadata">

**Author:** [@pau-riosa](https://forum.elixirforum.com/u/pau-riosa)\
**Replies:** 4\
**Last updated:** [October 22, 2025, 8:39pm UTC](https://forum.elixirforum.com/t/what-could-be-the-best-way-to-fetch-large-data-from-database-is-it-using-stream-resource-or-repo-stream-and-repo-transaction/73044 "2025-10-22T20:39:29Z")

</div>

I am planning to read large data from a database for a report, what could be the best way of getting these reports? Is it via Stream.resource where I could set a limit and offset or Repo.stream inside a Repo.transaction? …

---

## [Turbopuffer - A client library for the Turbopuffer vector database / full-text search](https://forum.elixirforum.com/t/turbopuffer-a-client-library-for-the-turbopuffer-vector-database-full-text-search/72735)

<div class="topic-metadata">

**Author:** [@jallum](https://forum.elixirforum.com/u/jallum)\
**Replies:** 1\
**Last updated:** [October 4, 2025, 6:45pm UTC](https://forum.elixirforum.com/t/turbopuffer-a-client-library-for-the-turbopuffer-vector-database-full-text-search/72735 "2025-10-04T18:45:44Z")

</div>

Turbopuffer - Elixir client for vector and full-text search I’m excited to share Turbopuffer, a new Elixir client library for the Turbopuffer vector database API. Features Vector similarity search with cosine distanc…

---

## [Bedrock - a scaleable, distributed key-value database with better-than-ACID guarantees](https://forum.elixirforum.com/t/bedrock-a-scaleable-distributed-key-value-database-with-better-than-acid-guarantees/72038)

<div class="topic-metadata">

**Author:** [@jallum](https://forum.elixirforum.com/u/jallum)\
**Replies:** 67\
**Last updated:** [September 26, 2025, 3:29pm UTC](https://forum.elixirforum.com/t/bedrock-a-scaleable-distributed-key-value-database-with-better-than-acid-guarantees/72038 "2025-09-26T15:29:49Z")

</div>

Hey folks :waving\_hand: I’ve been building a distributed key-value store in Elixir/OTP called Bedrock. It implements FoundationDB’s architecture but with a twist - instead of running as separate database servers, the co…

---

## [(DBConnection.ConnectionError) ssl recv: closed (the connection was closed by the pool, possibly due to a timeout or because the pool has been terminated)](https://forum.elixirforum.com/t/dbconnection-connectionerror-ssl-recv-closed-the-connection-was-closed-by-the-pool-possibly-due-to-a-timeout-or-because-the-pool-has-been-terminated/72354)

<div class="topic-metadata">

**Author:** [@Janardhan111](https://forum.elixirforum.com/u/Janardhan111)\
**Replies:** 7\
**Last updated:** [September 8, 2025, 8:05am UTC](https://forum.elixirforum.com/t/dbconnection-connectionerror-ssl-recv-closed-the-connection-was-closed-by-the-pool-possibly-due-to-a-timeout-or-because-the-pool-has-been-terminated/72354 "2025-09-08T08:05:51Z")

</div>

We have (DBConnection.ConnectionError) error in multiple places in our production only. 2025-09-03T16:13:51.0122410Z Request: POST /user/employee 2025-09-03T16:13:51.0122511Z \*\* (exit) an exception was raised: 2025-09-0…

---

## [Ecto.Migration: CHECK constraint and TRIGGER not working](https://forum.elixirforum.com/t/ecto-migration-check-constraint-and-trigger-not-working/60137)

<div class="topic-metadata">

**Author:** [@coen.bakker](https://forum.elixirforum.com/u/coen.bakker)\
**Replies:** 7\
**Last updated:** [June 23, 2025, 9:17pm UTC](https://forum.elixirforum.com/t/ecto-migration-check-constraint-and-trigger-not-working/60137 "2025-06-23T21:17:27Z")

</div>

TLDR: Database CHECK constraint and TRIGGER not working when inserting data with Ecto, but do work when inserting data with PSQL (on same database). I ran into a problem while setting up a database migration in a Phoeni…

---

## [Issue with Understanding Phoenix Project Deployment](https://forum.elixirforum.com/t/issue-with-understanding-phoenix-project-deployment/70760)

<div class="topic-metadata">

**Author:** [@vira](https://forum.elixirforum.com/u/vira)\
**Replies:** 2\
**Last updated:** [May 8, 2025, 3:38am UTC](https://forum.elixirforum.com/t/issue-with-understanding-phoenix-project-deployment/70760 "2025-05-08T03:38:20Z")

</div>

Hi friends, I am very new to Phoenix and PostgreSQL database. I am trying to deploy a simple very basic web app on fly.io to try to understand the deployment process so that I can adapt to my existing projects but I am …

---

## [Help thinking in Ash domains & resources](https://forum.elixirforum.com/t/help-thinking-in-ash-domains-resources/70529)

<div class="topic-metadata">

**Author:** [@agonzalezro](https://forum.elixirforum.com/u/agonzalezro)\
**Replies:** 3\
**Last updated:** [April 18, 2025, 8:49pm UTC](https://forum.elixirforum.com/t/help-thinking-in-ash-domains-resources/70529 "2025-04-18T20:49:34Z")

</div>

Hi folks :wave: TLDR; I have an idea explained at the end, but I am not sure that’s how I should be doing it in Ash. I am trying to understand how my domains & resources should look like. I have a domain Portofolio wh…

---

## [Podcast: ThinkingElixir 129 - Time series data with Timescale DB](https://forum.elixirforum.com/t/podcast-thinkingelixir-129-time-series-data-with-timescale-db/52483)

<div class="topic-metadata">

**Author:** [@brainlid](https://forum.elixirforum.com/u/brainlid)\
**Replies:** 6\
**Last updated:** [April 18, 2025, 4:40pm UTC](https://forum.elixirforum.com/t/podcast-thinkingelixir-129-time-series-data-with-timescale-db/52483 "2025-04-18T16:40:56Z")

</div>

Episode 129 of Thinking Elixir. Tracking, analyzing and visualizing time series data can add a lot of business value to a project! We met up with Dave Lucia to learn more about Timescale DB, a PostgreSQL extension that a…

---

## [Is It Possible to Install Custom PostgreSQL Extensions on Fly.io?](https://forum.elixirforum.com/t/is-it-possible-to-install-custom-postgresql-extensions-on-fly-io/69034)

<div class="topic-metadata">

**Author:** [@itzmidinesh](https://forum.elixirforum.com/u/itzmidinesh)\
**Replies:** 1\
**Last updated:** [January 28, 2025, 11:17am UTC](https://forum.elixirforum.com/t/is-it-possible-to-install-custom-postgresql-extensions-on-fly-io/69034 "2025-01-28T11:17:32Z")

</div>

Hi! :raising\_hands: I’m currently working on a project that requires using the Temporal Tables extension in PostgreSQL, and I’m wondering if it’s possible to install custom extensions on Fly.io’s managed PostgreSQL data…

---

## [Barrier synchronization for oban jobs](https://forum.elixirforum.com/t/barrier-synchronization-for-oban-jobs/60642)

<div class="topic-metadata">

**Author:** [@D4no0](https://forum.elixirforum.com/u/D4no0)\
**Replies:** 11\
**Last updated:** [January 24, 2025, 9:55am UTC](https://forum.elixirforum.com/t/barrier-synchronization-for-oban-jobs/60642 "2025-01-24T09:55:19Z")

</div>

I am using oban to create a group of tasks, all of these tasks are linked to the same parent. After all the tasks are complete, I want to add additional information to that parent that the tasks have completed, so a diff…

---

## [Best way to persist a processes state?](https://forum.elixirforum.com/t/best-way-to-persist-a-processes-state/68404)

<div class="topic-metadata">

**Author:** [@larshei](https://forum.elixirforum.com/u/larshei)\
**Replies:** 18\
**Last updated:** [January 3, 2025, 1:37am UTC](https://forum.elixirforum.com/t/best-way-to-persist-a-processes-state/68404 "2025-01-03T01:37:28Z")

</div>

Hey everyone! Preface Over the last days I started to create an online version of Doppelkopf, a german classical card game, using Elixir/LiveView. The project is still in a pretty basic shape and deployed on fly.io - fe…

---

## [Mnesia Backup traverse does not find :db\_nodes field](https://forum.elixirforum.com/t/mnesia-backup-traverse-does-not-find-db-nodes-field/68468)

<div class="topic-metadata">

**Author:** [@Sidi\_Mohammed](https://forum.elixirforum.com/u/Sidi_Mohammed)\
**Replies:** 0\
**Last updated:** [January 2, 2025, 10:21am UTC](https://forum.elixirforum.com/t/mnesia-backup-traverse-does-not-find-db-nodes-field/68468 "2025-01-02T10:21:08Z")

</div>

Hello, I have mnesia database which I want to change its node name, I have followed erlang official documentation and end up by this code which I run on :firstnode@host: :mnesia.stop() :mnesia.start() Process.sleep(200…

---

## [Does AshPostgres work with Amazon's AuroraDB?](https://forum.elixirforum.com/t/does-ashpostgres-work-with-amazons-auroradb/68200)

<div class="topic-metadata">

**Author:** [@chazwatkins](https://forum.elixirforum.com/u/chazwatkins)\
**Replies:** 5\
**Last updated:** [December 18, 2024, 9:28pm UTC](https://forum.elixirforum.com/t/does-ashpostgres-work-with-amazons-auroradb/68200 "2024-12-18T21:28:27Z")

</div>

Amazon states AuroraDB has full Postgres compatibility. Has anyone used AuroraDB with AshPostgres?

---

## [How to protect database credentials?](https://forum.elixirforum.com/t/how-to-protect-database-credentials/67413)

<div class="topic-metadata">

**Author:** [@ariandanim](https://forum.elixirforum.com/u/ariandanim)\
**Replies:** 1\
**Last updated:** [November 11, 2024, 3:29pm UTC](https://forum.elixirforum.com/t/how-to-protect-database-credentials/67413 "2024-11-11T15:29:38Z")

</div>

Dear All, Do i need to protect such as create .env for credentials database in production for my every phoenix app ?

---

## [How to investigate DB errors like "client timed out because it queued and checked out the connection for longer than..."](https://forum.elixirforum.com/t/how-to-investigate-db-errors-like-client-timed-out-because-it-queued-and-checked-out-the-connection-for-longer-than/54273)

<div class="topic-metadata">

**Author:** [@fedme](https://forum.elixirforum.com/u/fedme)\
**Replies:** 13\
**Last updated:** [October 25, 2024, 2:49pm UTC](https://forum.elixirforum.com/t/how-to-investigate-db-errors-like-client-timed-out-because-it-queued-and-checked-out-the-connection-for-longer-than/54273 "2024-10-25T14:49:02Z")

</div>

Hi, We’re starting to collect many of these errors in our logs and I am trying to understand how we can investigate them further: Postgrex.Protocol (#PID\<0.1264.0\>) disconnected: \*\* (DBConnection.ConnectionError) clien…

---

## [How to assure single connection/update on a db resouce](https://forum.elixirforum.com/t/how-to-assure-single-connection-update-on-a-db-resouce/66888)

<div class="topic-metadata">

**Author:** [@henriquesati](https://forum.elixirforum.com/u/henriquesati)\
**Replies:** 1\
**Last updated:** [October 21, 2024, 2:44am UTC](https://forum.elixirforum.com/t/how-to-assure-single-connection-update-on-a-db-resouce/66888 "2024-10-21T02:44:52Z")

</div>

I’m trying to manage an shared account balance that can be acessed by multiple users, for this I need sequencial transactions to assure actual state. It’s my first prod ready project so probably won’t have many acess, pr…

---

## [Exceptions in Ash datalayer have unhelpful stack traces](https://forum.elixirforum.com/t/exceptions-in-ash-datalayer-have-unhelpful-stack-traces/62934)

<div class="topic-metadata">

**Author:** [@spacebat](https://forum.elixirforum.com/u/spacebat)\
**Replies:** 6\
**Last updated:** [April 19, 2024, 2:00pm UTC](https://forum.elixirforum.com/t/exceptions-in-ash-datalayer-have-unhelpful-stack-traces/62934 "2024-04-19T14:00:02Z")

</div>

A number of times I’ve run into some error or other while developing in ash, the exception is printed along with a stack trace but it’s all library and framework stack frames. The message will be something like “Input In…

---

## [Using put\_assoc for many\_to\_many association without the actual record](https://forum.elixirforum.com/t/using-put-assoc-for-many-to-many-association-without-the-actual-record/34568)

<div class="topic-metadata">

**Author:** [@bitbldr](https://forum.elixirforum.com/u/bitbldr)\
**Replies:** 3\
**Last updated:** [January 25, 2024, 7:21am UTC](https://forum.elixirforum.com/t/using-put-assoc-for-many-to-many-association-without-the-actual-record/34568 "2024-01-25T07:21:33Z")

</div>

Hi! I’m trying to emulate an “enum” data type by forming a many-to-many relationship between 2 tables. Essentially I have Users and they have Roles. The roles are seeded into the database, but rarely change. I’m using th…

---

## [Identifying users/content by 64 bit Int (like Twitter) vs. 128 bit UUID (string) vs. 64 bit random string? Isn't 64 bit Int or random string far more efficient?](https://forum.elixirforum.com/t/identifying-users-content-by-64-bit-int-like-twitter-vs-128-bit-uuid-string-vs-64-bit-random-string-isnt-64-bit-int-or-random-string-far-more-efficient/60505)

<div class="topic-metadata">

**Author:** [@mikejm](https://forum.elixirforum.com/u/mikejm)\
**Replies:** 24\
**Last updated:** [December 28, 2023, 6:47pm UTC](https://forum.elixirforum.com/t/identifying-users-content-by-64-bit-int-like-twitter-vs-128-bit-uuid-string-vs-64-bit-random-string-isnt-64-bit-int-or-random-string-far-more-efficient/60505 "2023-12-28T18:47:50Z")

</div>

I am looking at the best way to identify my users and content on a social type app (user profiles, media, chat messages, etc). UUID vs. 64 bit Int I don’t like sequentially numbered systems. As I understand, GUID/UUID …

---

## [Database connection issues during deployment on Digital Ocean App Platform](https://forum.elixirforum.com/t/database-connection-issues-during-deployment-on-digital-ocean-app-platform/54842)

<div class="topic-metadata">

**Author:** [@stefanchrobot](https://forum.elixirforum.com/u/stefanchrobot)\
**Replies:** 20\
**Last updated:** [October 19, 2023, 1:00pm UTC](https://forum.elixirforum.com/t/database-connection-issues-during-deployment-on-digital-ocean-app-platform/54842 "2023-10-19T13:00:37Z")

</div>

Hey, recently I started to have issues during deployments to Digital Ocean App Platform. I’m deploying an Elixir release packed as a Docker image. During startup I’m often getting a database connection error: \[myapp\] \[2…

---

## [Can Ash define Resource on Postgres View table?](https://forum.elixirforum.com/t/can-ash-define-resource-on-postgres-view-table/59031)

<div class="topic-metadata">

**Author:** [@jkwchui](https://forum.elixirforum.com/u/jkwchui)\
**Replies:** 2\
**Last updated:** [October 17, 2023, 4:26am UTC](https://forum.elixirforum.com/t/can-ash-define-resource-on-postgres-view-table/59031 "2023-10-17T04:26:04Z")

</div>

I am playing with using Ash-over-Airtable, as a way to progressively go from exploration to prod. The toy example has student and subject tables, which are associated many-to-many. (One student take many subjects, one …

---

## [Create a database seed for PR preview environments 🌱](https://forum.elixirforum.com/t/create-a-database-seed-for-pr-preview-environments/49696)

<div class="topic-metadata">

**Author:** [@cblavier](https://forum.elixirforum.com/u/cblavier)\
**Replies:** 14\
**Last updated:** [August 28, 2023, 7:02pm UTC](https://forum.elixirforum.com/t/create-a-database-seed-for-pr-preview-environments/49696 "2023-08-28T19:02:43Z")

</div>

I want to set up preview environments (ad-hoc server + database for pending pull requests). The main issue we will have to tackle is database seeding: I want it to be minimal to prevent huge bills :money\_with\_wings: and…

[Next page](https://forum.elixirforum.com/tag/database/713.md?match_all_tags=true&page=1&tags%5B%5D=database)
