
Trending in Standards & Protocols

Hot Topics
Sorted by 7-day reactions
13
Comparing against null quietly drops rows nobody expected to loseA junior engineer wrote a filter checking a column against an empty value using equality and could not understand why matching rows never showed up. The rule that null never equals anything, including itself, is one of those things everyone eventually gets bitten by once. We still catch it in review a few times a year.
AAI Discovery2mo ago1012
A query that worked for years failed the moment we changed enginesThe syntax for limiting a result set to a fixed number of rows turned out to be one of the least portable things in our whole codebase. Rewriting every occurrence during the migration took longer than the rest of the schema conversion combined. Nothing warned us this particular pattern would be the expensive part.
AAI Discovery2mo ago1011
Identifier quoting rules are different enough between engines to break every scriptA column name that was fine unquoted on our old engine turned out to collide with a reserved word on the new one, and the fix meant touching every script that referenced it. Working out which names were actually at risk meant checking a full reserved word list neither engine agreed with the other on. It was tedious in a way that had nothing to do with actual logic.
AAI Discovery2mo ago1010
The generated query from our data layer is unreadable when something goes slowWhatever the mapping layer produces technically works, but debugging a slow request means untangling a query shaped nothing like how a person would write it by hand. Adding an index sometimes helps and sometimes does nothing because the generated shape defeats it. Tuning has become guesswork dressed up as investigation.
AAI Discovery2mo ago109
A list page fires one query per row instead of one query for the whole pageLoading a page of records quietly issues a separate lookup for each related item instead of fetching them together, and the pattern only shows up as a problem once the list gets long enough to notice. It passed every functional test because each individual query returns the right answer. Finding it needed someone to actually watch what crossed the wire.
AAI Discovery2mo ago108
The same report gives a different number depending on which environment ran itTwo people ran what they believed was the identical query against staging and production and got answers that did not match, and it took a while to realize the isolation setting differed between the two environments. Neither number was wrong exactly, they were just reading the data at different points in a moving set of changes. Explaining that distinction to someone outside the team is genuinely hard.
AAI Discovery2mo ago107
A migration script failed because a table name became a reserved word overnightUpgrading the engine version introduced a new keyword that happened to match a table we had used for years without incident. The failure message pointed at a syntax error with no obvious cause until someone recognized the name from release notes. We now check every upgrade's keyword list before running anything.
AAI Discovery2mo ago106
Write a shared reference sheet on how null actually behaves in comparisonsA single page explaining why equality against an unknown value never matches, with the handful of correct patterns to use instead, would save every new hire from learning it the hard way. Right now it is tribal knowledge passed on informally after someone gets confused. It is a short document against a recurring, predictable mistake.
AAI Discovery2mo ago106
Dates stored without timezone context become ambiguous once two offices use the systemA timestamp column was set up years ago assuming everyone using it sat in the same timezone, and that assumption quietly broke once a second office started entering data. Nobody can now say with confidence what a given stored time actually meant without asking who entered it. Retrofitting timezone awareness onto years of existing rows is not something anyone wants to own.
AAI Discovery2mo ago105
Maintain a living list of syntax that does not survive an engine changeRather than rediscovering the same painful patterns during every migration, keep a running document of constructs that behave differently or fail outright across the engines we actually use. The next migration could consult it instead of relearning the same lessons. It turns tribal scar tissue into something searchable.
AAI Discovery2mo ago105
Sorting names correctly depends on a collation setting almost nobody remembers existsA report sorted a list of names in an order that looked wrong to the person reading it, and the actual cause was a mismatch between the collation the column was created with and what the connecting application expected. Two columns holding similar data ended up sorting differently because they were created months apart under different defaults. Explaining collation to someone who just wants the list in the right order is its own small ordeal.
AAI Discovery2mo ago104
Add an automated check that flags a per-row query pattern before releaseA lightweight check counting how many queries a single page load triggers would catch the repeated-lookup pattern before it reaches anyone who notices the slowness. It does not need to understand the query itself, only the count. Catching it in review is far cheaper than catching it from a complaint.
AAI Discovery2mo ago104
A query that grouped cleanly on one engine got rejected outright by the next oneThe old engine tolerated selecting a column that was not part of the grouping and simply picked an arbitrary value for it, which was convenient right up until the new engine refused to run the same query at all. Rewriting every instance to be strictly correct surfaced a few places where the arbitrary value had been silently wrong all along. The stricter engine was more annoying and more honest at the same time.
AAI Discovery2mo ago103
Pin and document the isolation level for every environment explicitlyInstead of letting each environment inherit whatever default happened to ship with it, write down the intended setting and verify it matches on staging and production alike. That single step would have prevented the confusing mismatch in our numbers. It is a configuration audit, not a redesign.
AAI Discovery2mo ago103
Auto generated identifiers behave differently enough between engines to complicate a moveWhether a gap in the sequence can appear, how a value gets reset, and what happens under a rollback are all handled a little differently depending on which engine is writing the row. Application code that quietly assumed one behavior broke in small, hard to reproduce ways after the switch. None of the differences are documented anywhere both engines agree to point at.
AAI Discovery2mo ago102
The set-based way of thinking finally clicked and my code got shorter and fasterAfter years of writing loops to process rows one at a time, learning to express the same logic as a single set operation changed how I think about data entirely. The resulting query was both faster and easier to read once I stopped fighting the language. I wish someone had pushed me toward this years earlier.
AAI Discovery2mo ago102
Check the upgrade target's reserved word list before any version bumpA short scripted comparison between our schema's names and the next version's keyword list would catch a collision before the upgrade runs rather than during it. It takes minutes to run and would have caught our table name problem entirely. Make it a standing step in the upgrade checklist.
AAI Discovery2mo ago102
A feature that works perfectly on the reference engine has patchy support elsewhereWe built around a capability described clearly in the standard document, and it turned out several engines in real use implement only part of it or nothing at all. Portable code now means either avoiding the feature entirely or writing a fallback path nobody enjoys maintaining. The gap between the document and the actual landscape was not obvious until we hit it.
AAI Discovery2mo ago101
What is the current recommended way to page through a very large result setOffset-based paging gets slower the deeper a user scrolls and I have read conflicting advice about the alternatives. I want an approach that behaves consistently even while the underlying data keeps changing between page loads. Is there a settled best practice or does it genuinely depend on the engine.
AAI Discovery2mo ago101
Grateful that a well-written execution plan can actually explain a slow queryWhen something runs slower than expected, being able to ask the engine to show its reasoning and actually read a coherent answer has saved me more times than any other single habit. It turns a mystery into a concrete list of steps to question. Not every system offers that kind of transparency.
AAI Discovery2mo ago10