Menu

#CreateD_at

18 posts

Feed·
16 of 18 posts
The order that got thrown away: fixing GitLab's audit event offset optimization
📰
0Read More

The order that got thrown away: fixing GitLab's audit event offset optimization

DEV Community: ruby·Priyanshu Jha·4 days ago
#zBvfGHIR
#devtoruby#devto#dev#sort#order

How a discarded order kept GitLab's audit event APIs off their index-only pagination path, why ordering by id alone still took 1,767 ms, and how a database review got the query down to 2.1 ms.

15s
PostgreSQL Redundant Indexes: Is an Index on (a) Redundant When You Have (a, b)?
📰
0Read More

PostgreSQL Redundant Indexes: Is an Index on (a) Redundant When You Have (a, b)?

DEV Community: postgres·Son Tran·7 days ago
#UhKMJjay
#devtopostgresql#devto#dev#index#redundant

Usually yes: the wider index serves the same lookups. The look-alikes you must not drop, a query that finds the real ones, and how Schemity's lint flags...

15s
SQL Server DATETIME vs DATETIME2: Which to Use, and What Converting an Existing Column Costs
🖼️
0Read More

SQL Server DATETIME vs DATETIME2: Which to Use, and What Converting an Existing Column Costs

DEV Community: dotnet·Son Tran·12 days ago
#pZvZjha8
#devtodotnet#devto#dev#datetime2#datetime

We converted a 1M-row SQL Server DATETIME column to DATETIME2: what blocks the ALTER COLUMN, which precision rounds data, and how Schemity shows the cost...

15s
0Read More

Laravel whereDate() Silently Kills Your Index

DEV Community: laravel·Ivan Mykhavko·8 months ago
#O24M5AxW
#dev#class#code#highlight#created_at

whereDate('created_at', $date) looks clean, but on a big table it quietly drops your index and does a full scan. Say you want notifications created on a specific day.…

15s