SShortSingh.
Back to feed

Git Bisect Technique Applied to Database Data Using Neon Branching API

0
·25 views

Developers investigating incorrect data in production databases often resort to manual log-scrolling and guesswork, unlike code debugging where tools like git bisect efficiently pinpoint the breaking change. A new approach applies binary search logic to database state by leveraging Neon's ability to instantly branch a Postgres database at any past timestamp via its API. Each probe — creating a branch at a specific moment and running a query — costs roughly 1.7 seconds, making a 24-hour window searchable in about 20 seconds across 13 probes. In a real test, the tool narrowed a problem window from 12.5 minutes down to 47 seconds using just 6 probes in 14.2 seconds. The method is limited by the history retention window, defaulting to 24 hours, and the tool explicitly flags cases where the range is already broken at the start or the data changed multiple times.

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
ProgrammingDEV Community ·

Node.js Backup Uploads: Multipart Handling and Retention Rules for Report Archives

The article argues that an edtech service delivering generated reports should define its deletion procedure before choosing a multipart upload approach. It treats a report's lifecycle as a custody promise, meaning it must stay private while valid, be restorable when published, and be removable under retention or access rules. Using a report containing student work as an example, it asks how cancellations, revoked access, and timed-out deletions should be handled. The piece recommends that a durable application record, rather than storage state or bucket age rules, control authorization and retention, with unfinished uploads aborted and reconciled. It also separates customer-facing report archives from internal database backups, which may follow different schedules.

0
ProgrammingDEV Community ·

Building Container-Like Isolation with Linux Namespaces

A DEV Community article explains that containers are not a native Linux concept but are built from kernel namespace features. It lists seven namespaces, including mount, PID, network, IPC, UTS, user, and cgroup, along with chroot. The author outlines the two kernel APIs used to create namespaces: clone for new processes and unshare for moving existing ones. The tutorial takes a hands-on approach, using two terminals and shell scripts to demonstrate how a container system is assembled on Linux.

0
ProgrammingDEV Community ·

DJs Dominate Music's Most-Traveled Rankings, Study and Live Data Show

A 2017 TravelBird study found that the two most-traveled musicians in history are both electronic dance music producers, with Tiësto leading at over 1.55 million career miles. Beyoncé ranked 19th with about 472,443 miles, less than a third of Tiësto's total. The author's live leaderboard, built from announced tour stops for 83 major DJs and measured by great-circle distance, shows the same pattern this season. The gap is attributed to production logistics: pop stadium tours require dozens of trucks and multi-day setups, while a DJ's gear fits in a backpack, allowing far more city visits. The live rankings also reveal different travel strategies, such as Steve Aoki's many short regional legs versus Ferry Corsten's few long intercontinental flights.

0
ProgrammingDEV Community ·

Delphi physics lab from 2004 grows into Makarov Suites of simulations

A university student built a physics lab in Delphi 7 and OpenGL in 2004 for classroom use, and that original project still exists publicly on GitHub. The same desktop platform has since evolved into Makarov Suites, developed by the author in Munich. Physics, Math and Astronomy suites are available on Steam for Windows, while Engineering, Earth and Games are still in development. The author presents short recorded demonstrations of the applications, including wave motion in pendulums, cube permutations, black hole light bending, and gearbox mechanics. The applications are designed so users can explore concepts by manipulating the simulated objects themselves.