I saw a post touting the virtues of using an ORM.
I threw up in my mouth a little. 🤮
Sigh. My SQL Servers often feel like NoSQL data dumpsters.
It's true with database design too.
Cloudflare Workers 提供的 MySQL/MariaDB 方案
在「Build global MySQL apps using Cloudflare Workers and Hyperdrive」這邊看到 Cloudflare 提供了 Cloudflare Workers 使用 MySQL/MariaDB 的方案。 本來以為是做出了 replicated globally 的系統,還在想要怎麼處理 ACID 問題,花了點時間看完才發現是弄出了一個類似 ProxySQL 的架構,最終還是要連回某個區域的 MySQL 主機上,可能是 AWS、GCP、Azure 或是自己的 MySQL 伺服器: Now, you can create new Hyperdrive c…
#cloudflare #database #db #hyperdrive #mariadb #mysql #proxy #rdbms #serverless #sql #workers
Today I discovered "lnav"or the Log Navigator cli utility. It is a truly awesome log follower and navigator for the terminal which works beautifully with PostgreSQL log files.
#postgres #postgresql #debugging #sql #plpgsql #lnav #logs #logging #rdbms #system #administration
A Relational Model of Data for Large Shared Data Banks - E.F. Codd, 1970
* introduced a revolutionary approach to database design
* fundamentally changed how we store/access data
* rather than complex hierarchical structures, organized data into tables (relations) w. rows/columns
* manipulated through well-defined operations
...
https://fermatslibrary.com/s/a-relational-model-of-data-for-large-shared-data-banks#email-newsletter
New problem, new library! This time, I made a small utility for Laravel to limit a group of models on the table.
https://github.com/Laragear/Capstone
I talked about the implementation on my Medium blog, but in a nutshell, it uses a subquery to keep only the records you don't want to delete, like the latest five.
#PHP #Programming #Coding #Code #Laravel #Composer #GitHub #Git #Library #Package #WebDevelopment #WebDev #SoftwareDevelopment #Software #SQL #Database #ORM #RDBMS #DB
Django 5.2 支援 composite primary key
看到 Django 5.2 的公告,裡面列出了比較重大的改變,其中一個注意到的是支援 Composite (Compound) Primary Key 了:「Django 5.2 released」,完整的 release notes 則是在「Django 5.2 release notes」這邊可以看到。 就是因為這些 ORM library 不支援 compsite primary key,所以才會有 best (?) practice 要求每個表格都要有 primary key,而且是單一欄位... 大家應該都習以為常了,怎麼會突然在 2025 年才想要支援? …
#composite #compound #database #db #django #library #orm #pk #PrimaryKey #rdbms
Ugh. We have > 7,000 database tables with a column named [ID].
This is true, even on days not dated April 1st.
Here's the TSQL thing I mentioned a day or two ago: a stored procedure that performs an assessment of an existing database table.
So far, it does the following:
Checks for the presence/absence of certain criteria:
🔹A Primary Key and/or Unique Key.
🔹A clustered index.
🔹Compression (if any).
🔹Total number of rows.
🔹Create date.
🔹Columns with deprecated data types.
🔹Columns with ambiguous names.
Softr Expert certification ✅
What do you need help with? 🛟
#apps #airtable #database #databases #rdbms #data #softr #software #softwaredevelopment #webapps #webdevelopment #nocode #lowcode
Ook erg interessant was #DuckDB, een #OpenSource #RDBMS waarmee je ook razendsnel rechtstreeks op csv- en parquet-files kunt queriën. Uiteraard kun je zo'n #database ook in je #Java-project opnemen waarbij de jdbc-connectie zelf de database is. 👀
Firebird Project is happy to announce general availability of Firebird 5.0.2 — the latest minor release in the Firebird 5.0 series.
This minor release offers bug fixes as well as a few improvements, please refer to the Release Notes for the full list of changes.
Binary kits for Windows, Linux, MacOS and Android platforms are immediately available for download.
https://firebirdsql.org/en/news/firebird-5-0-2-minor-release-is-available
Nice:
“Extensible Query Optimizers In Practice” [2024, PDF], Bailu Ding, et al (https://www.microsoft.com/en-us/research/uploads/prod/2024/12/Extensible-Query-Optimizers-in-Practice.pdf).
#RDBMS #DB #QueryOptimizer #Paper #eBook #Survey #Databases #QueryOptimization
Mastering Relational Database Design: A Comprehensive Guide #rdbms #sql https://dev.to/louaiboumediene/mastering-relational-database-design-a-comprehensive-guide-3jh8
Let's Encrypt 的 Rate Limit 機制實作的演進
Let's Encrypt 把 Rate Limit 機制實作的演進整理出來:「Scaling Our Rate Limits to Prepare for a Billion Active Certificates」。
#Computer #Database #Infrastructure #MariaDB #Murmuring #Network #Privacy #Security #Service #Software #database #db #letsencrypt #limit #mariadb #quota #rate #rdbms #redis