frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Why more people are going to gigs, festivals and clubs alone

https://www.theguardian.com/music/2025/oct/21/why-more-people-going-gigs-festivals-clubs-alone
1•pseudolus•42s ago•0 comments

Suzanne Somers' widower is trying to recreate her with AI

https://ew.com/suzanne-somers-widower-is-trying-to-recreate-her-with-ai-11834409
1•geox•2m ago•0 comments

Perplexity at Work: A Guide to Getting More Done [pdf]

https://r2cdn.perplexity.ai/pdf/pplx-at-work.pdf
1•theonionspeaks•3m ago•0 comments

Illinois utility tries using electric school buses for bidirectional charging

https://insideclimatenews.org/news/03102025/illinois-electric-school-bus-vehicle-to-grid-program/
2•PaulHoule•10m ago•0 comments

Chris Paik: A Taxonomy of Innovation – Capacity, Coordination, and Connectivity

https://docs.google.com/document/d/1unzEKQG0MD85JjZCPtjvwtvjZI8Sen8mEp1-Gn3JHDY/edit?tab=t.0
1•jger15•11m ago•0 comments

Show HN: LunaRoute – a high-performance local proxy for AI coding assistants

https://github.com/erans/lunaroute
1•erans•11m ago•0 comments

ShieldAI Launches the X-Bat

https://www.cnbc.com/2025/10/21/exclusive-first-look-at-shield-ais-x-bat-ai-piloted-fighter-drone...
1•robgourley•16m ago•0 comments

No Appointments, No Nurses, No Private Insurance Needed

https://www.theatlantic.com/health/2025/10/medicaid-mango-house/684488/
2•JumpCrisscross•18m ago•0 comments

AI Video Maker – Generate videos from text or images using Sora, Veo, and more

https://apps.apple.com/rs/app/ai-video-generator-aivideo/id6736862905
3•virtualminds•21m ago•2 comments

15M Budget Line That Doesn't Exist – Certificates

https://blog.axonshield.com/the-15-million-budget-line-that-doesnt-exist/
1•dc352•24m ago•0 comments

A billionaire has rebuilt downtown Detroit

https://www.economist.com/united-states/2025/10/15/a-billionaire-has-rebuilt-downtown-detroit
3•yakkomajuri•28m ago•1 comments

Knowledge Transfer from High-Resource to Low-Resource Languages for Code LLMs (2023)

https://arxiv.org/abs/2308.09895
1•peatmoss•29m ago•0 comments

C++26: Printing `std:tuple` with expression templates

https://www.cppstories.com/2025/tuple-iteration-cpp26/
1•ashvardanian•32m ago•0 comments

"Butt breathing" might soon be a real medical treatment

https://arstechnica.com/science/2025/10/butt-breathing-might-soon-be-a-real-medical-treatment/
2•zdw•34m ago•1 comments

The future of Python web services looks GIL-free

https://blog.baro.dev/p/the-future-of-python-web-services-looks-gil-free
1•birdculture•37m ago•0 comments

A Furious Debate over Autism's Causes Leaves Parents Grasping for Answers

https://www.nytimes.com/2025/10/14/health/autism-parents-genetics-vaccines-tylenol.html
1•walterbell•37m ago•0 comments

Active mechanical logic gates – Capstan Lever Logic (CLL) [video]

https://www.youtube.com/watch?v=Lt0alWQzkWY
1•karussell•39m ago•0 comments

Git considers SHA-256, Rust, LLMs, and more

https://lwn.net/SubscriberLink/1042172/869c5b0722123b13/
2•chmaynard•44m ago•2 comments

Experts say the high failure rate in AI adoption isn't a bug, but a feature

https://fortune.com/2025/10/21/ai-adoption-failure-rate-bug-feature-amy-coleman-jessica-wu-karin-...
1•minifyre•45m ago•3 comments

My Data Career Journey So Far

https://datamethods.substack.com/p/my-data-career-journey-so-far
2•zekrom•48m ago•0 comments

It's Not Just You – The iOS Keyboard Is Broken [video]

https://www.youtube.com/watch?v=hksVvXONrIo
7•quarkw•49m ago•3 comments

California cracks down on water theft but spares data centers

https://www.latimes.com/environment/story/2025-10-14/newsom-ai-data-center-water
1•1vuio0pswjnm7•51m ago•0 comments

The Hidden Engineering of Niagara Falls

https://practical.engineering/blog/2025/10/21/the-hidden-engineering-of-niagara-falls
2•chmaynard•51m ago•0 comments

You Probably Don't Need to Switch from Pandas to Polars

https://datamethods.substack.com/p/you-probably-dont-need-to-switch
3•zekrom•53m ago•0 comments

Uber: Rebuilding Uber's Apache Pinot Query Architecture

https://www.uber.com/blog/rebuilding-ubers-apache-pinot-query-architecture/
1•ankitsultana•53m ago•0 comments

I Still Love R. I Just Wish More People Did

https://datamethods.substack.com/p/i-still-love-r-i-just-wish-more-people
4•zekrom•54m ago•0 comments

Why calm leadership matters most when everything's on fire

https://chaoticgood.management/a-fire-is-not-an-emergency-for-the-fire-department/
4•rellid•59m ago•0 comments

Pixel Art in Microcontroller Displays [link fixed]

https://dev.makapix.club/
1•fabk•59m ago•1 comments

Driverless Waymo taxis under investigation for failing to stop for a school bus

https://www.latimes.com/business/story/2025-10-21/driverless-waymo-taxis-under-investigation-afte...
4•1vuio0pswjnm7•1h ago•0 comments

Chinese staff go rogue after Dutch seize control of chip firm

https://www.telegraph.co.uk/business/2025/10/20/chinese-staff-go-rogue-dutch-seize-control-of-chi...
13•ridiculous_leke•1h ago•0 comments
Open in hackernews

Ask HN: How do you managing staging database content?

4•crummy•2h ago
You have a staging environment, or maybe a bunch of them, that you push code to. The code is short-lived but you have a database as well. What do you put in this staging database? Some options I can think of:

1. Staging DB spins up empty. You create a user during use, probably data is never cleaned, reproducing prod issues is kind of a pain.

2. Staging DB is populated with some dummy data from scripts, possibly as part of deployment. Nice but you have to maintain the scripts.

3. Staging gets a copy of prod. Great for reproducing issues from prod, and possibly viable at small scale, but has some security issues - you'd probably need to censor some columns.

Perhaps there are other options, or ways to alleviate the pain here?

Comments

tony-vlcek•1h ago
Also 2, as part of migrations:

There 3 types of migration files/scripts: structure, basic-data, dummy-data.

structure - new table, add column goes here basic-data - e.g. default config values go here dummy-data - gets used on local and stating

Run migrations with a flag to include the dummy-data migrations.

benoau•27m ago
+1 for this approach.

The big benefit here is not just your staging database, but everybody's locally running databases also get prepopulated data which is really useful for development and testing.

alganet•1h ago
It depends on where the rest of the team is.

Have they gone through the experience of having a persistent staging environment that slowly drifts from production (1)? If they haven't, they can't possibly understand why that is a bad idea. I'll just go with the flow until they realize. Maybe I'll hint at the possible issues sometimes.

Have they figured out that copying prod is a bad idea (3)? If they haven't, same thing. They can't understand why that sucks and why that's not true reproducibility.

Finally, (2). Fixtures! It's also a journey. There are so many things that can go wrong. Knowing those things depends on having gone through those journeys with a persistent staging and production copies.

There is no relief from the pain. No magic bullet. No product or solution that will ever solve this. You have to go through those stages. If you're lucky, someone will guide you through them (in practice). The journey can be sped up, but I haven't seen a shortcut that works (like forcing the team to adopt a practice without them internalizing it).

crummy•1h ago
If you go with (2), and you add a DB column in a PR, I suppose you include a script to update staging with the new content at the same time?
alganet•1h ago
That is database schema. The post asks for opinions on database contents. They are related though, so it's a valid question.

> I suppose you include a script to update staging

Essentially, yes. But if I write a script to do it on staging, why don't I write one for prod as well? Maybe I could even go beyond that. Make a simple tool to handle those scripts for me (that's migrations).

It requires some version control and deployment discipline, which is something you probably wouldn't have if you're adding columns directly on the prod db.

I learned very early that no developer should have access to prod db. Not even read access. No writing, definitely. Schema changes by a single developer outside version control should be impossible.

noir_lord•20m ago
4) is same as three but you take a subset of the data with correct relations, anonymise it carefully and use that, it has a lot of complexity at scale but is about as faithful as I’ve seen, it’s also one of those tools that forever requires maintenance as the core db mutates.

For local devs, seeding the database with plausible correct data works pretty well.