12 November 2026

A Case of Performance Degradation in Oracle JDBC on a High-Performance Database Server

When optimizing an SQL query I stumbled into a situation where a faster query translated into slower overall execution on the Java side. Java 8 with Oracle JDBC 19.3.0.0 was talking to a high‑performance Oracle Database (19c Enterprise Edition; also tested on 18c SE2). The result set had about 140 columns, including 2 CLOB columns that requirements did not allow to split into multiple rows. Because of VPN and Zscaler, I used a higher fetchSize (around 1000), as the default fetch size caused up to 60× slowdown from network overhead.
Before optimization, most of the time was spent executing the SQL on the database. After optimization, the SQL itself was clearly faster, but end‑to‑end execution in the Java application became much slower, up to about 30× slower compared to running the same SQL in SQL Developer. Profiling showed that 98% CPU usage was inside Oracle JDBC internals, specifically PhysicalConnection.removeFromTemporaryLobs.

25 September 2026

Fuzzy contracts are eating away your developer skills.

Older, widely used code rarely treats the Single Responsibility Principle (SRP) as a strict contract. Each method does roughly one thing, but the edge cases (nulls, mutability, memory, fallbacks) are decided case by case:
  • Date / SimpleDateFormat are mutable and not thread-safe.
  • List.of(...).contains(null) throws NPE.
  • Collections.unmodifiableList is only a view - changes to the original list still show through.
  • Integer.parseInt(null) throws NumberFormatException instead of NullPointerException.
  • Arrays.sort(a, null) silently falls back to natural order.
Each exception is small, but together they mean that names can't be trusted, so every piece of documentation has to be read. Documentation stops being clarification and becomes a list of exceptions you have to remember. Newer APIs are somewhat better, but lost trust is hard to rebuild. The old warning "always read the documentation" was never about good practice - it was about code whose names could not be trusted.
Current code is easy to write and read as long as it fits conventions, but whenever something goes beyond them, we see more errors and less clear code.
Conventions become harmful when they collapse multiple domains into one while only partially handling each of them. Later, developers mistake that partial pattern for the correct model; with time and popularity, it's taken as proper design.

22 February 2026

BreakPointLocator: The Pattern That Can Save Your Team Weeks of Work

A cheap, low-effort debugging pattern for large codebases that helps you quickly narrow down where to set breakpoints - without /invasive/ logging or big code changes.

16 February 2026

How to Handle 1700000000000000000000000000000000 Test Cases and Tests That Actually Matter

There are actual problems with how tests are used, so let’s look at the omitted aspects of testing. To get a sense at what I'm aiming at you can check how huge successful systems try to survive, see: Oracle Database 12.2 – 25 million lines of C code.

11 February 2026

CleanCut-Flow as flexible branching strategy for Git

Constraints:
  • We want to be able to release a version on demand.
  • We need to support multiple versions when required.
  • We need a solution that scales with our current and future needs.

22 January 2026

20 January 2026

19 January 2026

Java Proposal: The Glue Classes - Explicit, Modular Type Extension


This post was rewritten to be usable as a prompt !

A design idea that reduces inheritance and boosts chainability by moving behavior into composable call chains.
Sample code:
Objects.requireNonNull(some); final A a = some.getA(); Objects.requireNonNull(a, "explanation"); validate(a); final B b = a.getB(); Objects.requireNonNull(b, "explanation"); b.process(param1);

Same code written using glue:
some..ensureNotNull()// .getA()­..ensureNotNull("explanation")­..ensureValid()// .getB()­..ensureNotNull("explanation")// ..process(param1..ensureNotNull());