SShortSingh.
Back to feed

Random UUID keys triple Postgres WAL output per insert, study finds

0
·3 views

A developer benchmarked three primary key types in PostgreSQL 16: bigint identity, random UUIDv4, and time-ordered UUIDv7. Each single-row insert with random UUIDs wrote about 558 bytes to the write-ahead log, versus 186 bytes for bigint, roughly tripling the log volume. The cause is that random keys scatter writes across the index, so many pages must be fully logged after each checkpoint to guard against torn writes. The author also found that random UUIDs produced larger indexes and less densely packed pages, while throughput on the test machine changed little. The UUIDv7 results were affected by a slower SQL-based generator and bulk-load conditions, which the author notes as caveats.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingHacker News ·

YouTube Ad Punisher project on GitHub aims to bypass anti-adblock measures

A GitHub project called YouTube Ad Punisher has been shared on Hacker News, drawing 16 points and 5 comments. The tool is described as a way to get around YouTube's anti-adblock detection. The source material provides only the project link and discussion metadata, so details about its methods and functionality are not available. The item reflects ongoing community interest in ad-blocking workarounds on the platform.

0
ProgrammingDEV Community ·

Quiet Watch Winder Build Focuses on Motor Choice and Resonance Control

A DIY builder who makes things professionally describes designing a quiet automatic watch winder after noticing noise problems. The article identifies three noise sources: motor and gearbox whine, enclosure resonance that amplifies vibration, and impulse clicks from abrupt starts and stops. Recommended fixes include choosing a worm-drive or brushless motor, decoupling the motor with damping material, adding mass to the cup, and programming soft start and stop ramps. The author also notes that winding direction and turns per day must match the movement, and that intermittent rest periods are better for both the watch and the winder.

0
ProgrammingDEV Community ·

How to score a local lead list so you call the best 20 percent first

A practical guide explains how to prioritise a large list of local business leads so sales calls go to the most promising prospects first. It warns that calling in list order wastes time on closed businesses, unreachable numbers, and companies too small to buy. The method starts with cleanup: removing rows with no contact details, duplicate listings, and off-category entries, which typically cuts 10 to 25 percent of a 250-row list. The author then recommends defining scoring signals that match what is being sold, such as a missing website for web designers or a low rating for marketing agencies. Points are assigned to each signal in a spreadsheet formula, with optional manual website checks for the top candidates, and the sorted list is split into tiers for calling.

0
ProgrammingDEV Community ·

Why AI Voice Generators Struggle With Multi-Character Stories and How to Choose Better

Many people evaluate AI voice tools using short single-narrator samples, which does not reflect the demands of fiction or dialogue-heavy audio. Narration and multi-character performance pose distinct technical challenges, and using a single-speaker tool for dialogue forces manual splitting, tagging, and stitching of clips. Creators are advised to test tools with genre-specific passages covering hesitant dialogue, narration-to-dialogue transitions, and contrasting character voices. Simple text adjustments such as clear speaker attribution and deliberate punctuation can also improve how naturally a voice performs. The guide further notes that export formats and downstream deliverables should be checked before rendering long scripts.