database

Tag: database

50 posts
A
Autotelic

To simulate a business

Put the business in a box, then shake it

·
Aug 8
·
A
Autotelic

Content-addressed extension points

could code live with the data, without residing with the data?

·
Aug 6
·
BBB icon
BBB
logue.is/23234123ddd-dddsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfdddd23234

-

·
Jul 25
·
BBB icon
BBB
logue.is/23234123ddd-dddsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfdddd23234

-

·
Jul 25
·
BBB icon
BBB
logue.is/23234123ddd-dddsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfdddd23234

-

·
Jul 25
·
BBB icon
BBB
logue.is/23234123ddd-dddsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfdddd23234

-

·
Jul 25
·
BBB icon
BBB
logue.is/23234123ddd-dddsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfdddd23234

-

·
Jul 25
·
T
Today I Learned
til.desertthunder.dev

CRDT

·
Jul 16
·
BBB icon
BBB
logue.is/23234123ddd-dddsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfdddd23234

-

·
Jun 30
·
BBB icon
BBB
logue.is/23234123ddd-dddsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfdddd23234

-

·
Jun 30
·
BBB icon
BBB
logue.is/23234123ddd-dddsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfdddd23234

-

·
Jun 30
·
Reading your own writes with WAIT FOR LSN in Postgres 19
Redowan's Reflections icon
Redowan's Reflections
rednafi.com

Reading your own writes with WAIT FOR LSN in Postgres 19

PostgreSQL 19's new WAIT FOR LSN command lets a replica block until it has replayed your write. The read-after-write problem it solves, the workarounds it replaces, and what the timeout, status, and mode options are actually for.

·
Jun 12
·
BBB icon
BBB
logue.is/23234123ddd-dddsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfdddd23234

-

·
Jun 10
·
BBB icon
BBB
logue.is/23234123ddd-dddsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfdddd23234

-

·
Jun 10
·
John Beales icon
John Beales
johnbeales.com

I'm migrating analytics to a new database structure for 4RoadService, it looks like this will take a few days. This should enable faster, better, and more accurate reporting for our customers.

·
Jun 9
·
BBB icon
BBB
logue.is/23234123ddd-dddsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfdddd23234

Moving beyond fork() + exec()

·
Jun 6
·
BBB icon
BBB
logue.is/23234123ddd-dddsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfdddd23234

-

·
Jun 4
·
BBB icon
BBB
logue.is/23234123ddd-dddsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfdddd23234

-

·
Jun 4
·
D
dsdk1
logue.is/131231221300

-

·
Jun 2
·
John Beales icon
John Beales
johnbeales.com

I am now a member of the "Claude code deleted something that it shouldn't have from my database" club! Good thing it was a development database.

·
May 26
·
Repositories, transactions, and unit of work in Go
Redowan's Reflections icon
Redowan's Reflections
rednafi.com

Repositories, transactions, and unit of work in Go

Decoupling business logic from storage in Go, adding transaction support without leaking SQL details, and coordinating atomic writes across multiple repositories using a unit of work.

·
Mar 20
·
How do you handle transactions with the repository pattern?
Redowan's Reflections icon
Redowan's Reflections
rednafi.com

How do you handle transactions with the repository pattern?

Adding transaction support to a repository interface without leaking storage details.

·
Mar 19
·
Do you need a repository layer on top of sqlc?
Redowan's Reflections icon
Redowan's Reflections
rednafi.com

Do you need a repository layer on top of sqlc?

Decoupling business logic from storage with a small interface in Go.

·
Mar 15
·
L
Ledger

On newly created database schemas

If you've just created new schemas and have multiple user roles, make sure to execute these commands.

·
Mar 12
·
Scott Spence icon
Scott Spence
scottspence.com

SQLite Corruption with fs.copyFile() in WAL Mode

I was looking up something on my site for reference (as I usually do when trying to recall a detail) when I noticed the popular posts in the footer weren’t displaying. That’s odd. I’d been working with the database locally recently, so my immediate...

·
Oct 5 '25
·
Scott Spence icon
Scott Spence
scottspence.com

Hunting Down 1.3 Billion Row Database Reads

I spent some time this weekend rolling the auth credentials for this site (again) after Claude Code doxed my variables! Anyways, whilst I was doing this I noticed my Turso dashboard had 1.3 BILLION row reads. My database was getting absolutely...

·
Jul 12 '25
·
Decision Tree: DyanamoDB vs Aurora PostgreSQL
L
luminary.blog
luminary.blog

Decision Tree: DyanamoDB vs Aurora PostgreSQL

Which one should you pick

·
Jun 1 '25
·
Devtools FM icon
Devtools FM
devtools.fm

Peter Pistorius - Redwood SDK

Peter Pistorius discusses Redwood's evolution into a serverless React Server Components framework and his vision for personal software development.

·
May 31 '25
·
Using psycopg2 with AWS Lambda and CDK: Binary vs Source Solutions
subaud icon
subaud
subaud.io

Using psycopg2 with AWS Lambda and CDK: Binary vs Source Solutions

Getting psycopg2 to work in AWS Lambda can be frustrating. This post shows you two reliable solutions - using pre-compiled binaries for simplicity, and building from source with Docker for production workloads.

·
May 29 '25
·
Devtools FM icon
Devtools FM
devtools.fm

Stepan Parunashvili - InstantDB

Stepan Parunashvili unveils InstantDB, a modern Firebase replacement designed to make building local-first applications easier and more powerful.

·
May 24 '25
·
Updating Athena Queries for Enhanced Blog Traffic Analysis
subaud icon
subaud
subaud.io

Updating Athena Queries for Enhanced Blog Traffic Analysis

Expanding on our CloudFront log analysis with new Athena queries to differentiate bots vs humans, analyze external referrers, and get detailed bot traffic insights.

·
Apr 4 '25
·
Deep Dive: Building 'alphabetizi.ng'
subaud icon
subaud
subaud.io

Deep Dive: Building 'alphabetizi.ng'

Exploring the architecture and interesting features of a serverless survey application built with AWS CDK, React, DynamoDB, and Lambda@Edge

·
Apr 3 '25
·
Hierarchical rate limiting with Redis sorted sets
Redowan's Reflections icon
Redowan's Reflections
rednafi.com

Hierarchical rate limiting with Redis sorted sets

Build multi-level rate limiting with Redis sorted sets and Lua. Enforce global and category-specific limits with ZREMRANGEBYSCORE and ZCARD commands.

·
Jan 11 '25
·
Devtools FM icon
Devtools FM
devtools.fm

Predrag Gruevski - Trustfall, Cargo Semver Checks, and the Future of Query-Based Tools

Predrag Gruevski explores Trustfall, a revolutionary query tool that turns anything into queryable data, and cargo-semver-checks for Rust semantic versioning.

·
Sep 7 '24
·
Scott Spence icon
Scott Spence
scottspence.com

Multi-instance PocketBase setup

I’ve been playing around with Hetzner Cloud for a while now, mainly setting up this site on it using Coolify but it got me thinking about using it for other things too. I’ve used PocketBase before for other projects and documented it for use with...

·
Aug 16 '24
·
💌 Tiny Improvements - for builders, by @MikeBifulco.com icon
💌 Tiny Improvements - for builders, by @MikeBifulco.com
mikebifulco.com

Seed your Supabase database with this simple pattern

Learn how to seed your Supabase database with this simple pattern.

·
Jul 23 '24
·
💌 Tiny Improvements - for builders, by @MikeBifulco.com icon
💌 Tiny Improvements - for builders, by @MikeBifulco.com
mikebifulco.com

Seed your Supabase database with this simple pattern

Learn how to seed your Supabase database with this simple pattern.

·
Jul 23 '24
·
Devtools FM icon
Devtools FM
devtools.fm

Sabin Adams - Prisma

Developer advocate Sabin Adams dives into Prisma's type-safe ORM magic, exploring schema power, Prisma Accelerate, and the future of database tooling.

·
May 10 '23
·
Sorting a Django queryset by a custom sequence of an attribute
Redowan's Reflections icon
Redowan's Reflections
rednafi.com

Sorting a Django queryset by a custom sequence of an attribute

Sort Django querysets by custom attribute sequences using Case and When expressions for database-level ordering with SQL CASE statements.

·
May 8 '23
·
Switching between multiple data streams in a single thread
Redowan's Reflections icon
Redowan's Reflections
rednafi.com

Switching between multiple data streams in a single thread

Poll multiple data sources in a single thread using Python generators with itertools.cycle to alternate between infinite data streams efficiently.

·
Feb 18 '23
·
Manipulating text with query expressions in Django
Redowan's Reflections icon
Redowan's Reflections
rednafi.com

Manipulating text with query expressions in Django

Use Django query expressions like Replace, Upper, Lower, Concat, and Substr for efficient database-level text manipulation without fetching data.

·
Jan 6 '23
·
Faster bulk_update in Django
Redowan's Reflections icon
Redowan's Reflections
rednafi.com

Faster bulk_update in Django

Accelerate Django bulk_update operations by 4x using multiprocessing to parallelize database writes across chunked record batches.

·
Nov 29 '22
·
Using a Private RDS Instance with Lambda in AWS CDK
subaud icon
subaud
subaud.io

Using a Private RDS Instance with Lambda in AWS CDK

How to build a private RDS database and connect to it with an AWS Lambda function using AWS CDK.

·
Nov 5 '22
·
Scott Spence icon
Scott Spence
scottspence.com

Set up a free PocketBase database with Fly.io

I was playing around with Linode recently to try set up a PocketBase instance then I came across this guide on the PocketBase GitHub discussions. The whole thing took around ten minutes and I now have a SQLite database I can read/write to.

·
Oct 1 '22
·
Recipes from Python SQLite docs
Redowan's Reflections icon
Redowan's Reflections
rednafi.com

Recipes from Python SQLite docs

Practical SQLite recipes for Python: execute statements, batch operations, transactions, row factories, and context managers with sqlite3.

·
Sep 10 '22
·
Pick random values from an array in SQL(ite)
Redowan's Reflections icon
Redowan's Reflections
rednafi.com

Pick random values from an array in SQL(ite)

Emulate Python's random.choice in SQLite using JSON arrays and the random() function. Populate tables with realistic test data efficiently.

·
Sep 1 '22
·
Bulk operations in Django with process pool
Redowan's Reflections icon
Redowan's Reflections
rednafi.com

Bulk operations in Django with process pool

Speed up Django bulk operations with ProcessPoolExecutor while preserving signals and hooks that bulk_create/bulk_update bypass.

·
Jun 26 '22
·
Alexander Fortin's Tech Blog icon
Alexander Fortin's Tech Blog
a.l3x.in

Automate database backups with AWS Fargate, S3 and CDK

I love how Serverless enables simple solutions to common DevOps tasks: in this article I describe one simple way to automate MongoDB database backups using AWS Fargate, S3, and CDK.

·
Aug 11 '20
·
ばうあーろぐ icon
ばうあーろぐ
girigiribauer.com

本番DBの複製を Docker を用いてローカルに爆速で構築したい

手元に 本番環境のデータベースと同等のもの が欲しくなるとき、ありますよね? そんなとき、以下のようなことしちゃってませんか? 本番環境がすでにあって、それを直接触って修正しちゃってる 良くないと思いつつも、トラブルが起きてから本番環境へ直接対処しちゃってる だいぶ構成が異なるけど XAMPP / MAMP あたりを雑に使ってて、いざ本番に持って行ったらうまく動かない などなど・・・ 本番環境においてトラブルを極力減らすためにも、 手元に本番環境と同等の環境を作るのは超大事 だと思います。 手元にデータベースを用意して、快適に開発 or 制作していきましょう! 実はコンテナベースですぐ作れる 実は、 コンテナベース(Docker)でさくっと作れる んですよね。 ですが意外と知らない人も多く、情報もそこまでまとまってないように感じたので、 改めてまとめ直してみようと思います。 ちなみに Docker に関しては、 めっちゃ頑張って書いた分かりやすい(と自分では思っている・・・)記事があるんですけど、 あんまり読んでもらえてないみたいでちょっと寂しさ・・・。 Docker 知らない人は読むといいですよ。 Docker 再入門2018 - コンテナ編 Docker 再入門2018 - コマンド編 Docker 再入門2018 - エコシステム編 Docker 再入門2018 - 実践編 以下の手順で進めていきます。 下準備 MySQL で空のデータベースコンテナを作る MySQL で空のデータベースコンテナにアクセスしてみる PostgreSQL でコンテナ作ったりアクセスしてみたり 管理しやすさのため、 Docker Compose でコマンドを書き換える 初期データの用意をする(本番環境から持ってくる) 初期データを投入してみる 上の Docker 記事で触れたような内容も一部重複して出てくるかもしれませんが、 この記事だけさらっと読んでできるようにまとめておきたいと思います。

·
Jul 12 '20
·
B
Broonix Rants
rants.broonix.ca

Renaming Database Constraints with Liquibase

·
Sep 13 '16
·