Get in touch

Work

Central government body

Public sector · 12/2025 – 12/2026

Java 17, Spring Boot, Spring Batch, PostgreSQL, Liquibase, OpenShift 4, Helm, Kustomize, GitLab CI, Jenkins

Application database export cut from 3 hours to 40 minutes

−67% to −78% machine time

  • Java 17
  • Spring Boot
  • Spring Batch
  • PostgreSQL

Confidential project. This application runs on an intranet: neither the client's code nor its data is published. This page describes what was done and what was measured.

The context

Full database export of a national public-sector business application handling sensitive data. This optimisation dates from 2026 and was carried out in my current engagement, which started in 12/2025, in Java 17. In production, the export took about three hours, with peaks of 7 hours.

The constraint

A three-hour job with peaks of 7 hours is not just slow: its duration is unpredictable. It is hard to reserve an operating window for it, or to say when its output will be available. It had to be made shorter, and the spread had to be narrowed too.

What was done

  • The export. Full database export brought down from about 3 hours to 40–60 minutes in production. The best measured run is 38 minutes.
  • The measurement. Durations are recorded in production, on real volumes rather than on a test data set: the 40-to-60-minute range and the best run come from those measurements.
  • Delivery. The job lives in the engagement’s pipeline: GitLab CI and Jenkins, Helm and Kustomize deployments, OpenShift 4 orchestration.
  • The data. A PostgreSQL database whose schemas evolve through Liquibase, like the rest of the application.

What this project draws on

  • Measurement in production: durations recorded on the real environment.
  • High-volume processing: Java 17, Spring Boot, Spring Batch, PostgreSQL.
  • Delivery and operations: GitLab CI, Jenkins, Helm, Kustomize, OpenShift 4.
  • Sensitive context: a national application handling sensitive data.

The result

From about 3 hours (peaks of 7 hours) to 40–60 minutes in production, i.e. −67% to −78% machine time depending on the run (180 → 60 min, then 180 → 40 min). The best measured run is 38 minutes. The title uses the low end of the range; the full range is the one above.

The method, with generic code, is described in the article Optimiser Spring Batch : diagnostiquer et accélérer un batch lent (in French).

Outline

Outline of a bulk processing job on OpenShift Data processing: PostgreSQL (application database), then Batch reading (paged or, partitioned), then Spring Batch (steps · chunks, restart on failure), then Writing / export (batch writes). Delivery and operations: GitLab CI / Jenkins (build · tests, image), then Helm / Kustomize (deployment declared, as files), then OpenShift 4 (runs the job), then Monitoring (durations · volumes, errors). OpenShift 4 runs Spring Batch. Monitoring observes Spring Batch. Generic, anonymised diagram: it shows how bulk processing works in principle, not the exact architecture of a project. DATA PROCESSING DELIVERY AND OPERATIONS runs observes PostgreSQL application database Batch reading paged or partitioned Spring Batch steps · chunks restart on failure Writing / export batch writes GitLab CI / Jenkins build · tests image Helm / Kustomize deployment declared as files OpenShift 4 runs the job Monitoring durations · volumes errors Outline of a bulk processing job on OpenShift Data processing: PostgreSQL (application database), then Batch reading (paged or, partitioned), then Spring Batch (steps · chunks, restart on failure), then Writing / export (batch writes). Delivery and operations: GitLab CI / Jenkins (build · tests, image), then Helm / Kustomize (deployment declared, as files), then OpenShift 4 (runs the job), then Monitoring (durations · volumes, errors). OpenShift 4 runs Spring Batch. Monitoring observes Spring Batch. Generic, anonymised diagram: it shows how bulk processing works in principle, not the exact architecture of a project. DATA PROCESSING DELIVERY AND OPERATIONS PostgreSQL application database Batch reading paged or partitioned Spring Batch steps · chunks restart on failure Writing / export batch writes GitLab CI / Jenkins build · tests image Helm / Kustomize deployment declared as files OpenShift 4 runs the job Monitoring durations · volumes errors
Generic, anonymised diagram: it shows how bulk processing works in principle, not the exact architecture of a project.

A context close to yours? Let's talk for thirty minutes.