Illustration: a barcode turning into a bar chart
Back to Projects

Analytics Data Warehouse for an Excise-Tracking System

Client

NDA

Industry

Public Sector / Data Engineering

Duration

July 2026 - ongoing

Team

Data Engineer in the client's Reporting team of 4

Overview

The client is building a public-sector system that tracks excise goods unit by unit: every item carries a barcode, and its movement reaches the system in close to real time. Our engineer works in the client's Reporting team, a small team of four with a manager, engineers and daily stand-ups. The team builds the excise reports, the analytics on volumes, the monitoring of production data and the data prepared for the tax authorities. IdeaTeam's data engineer joined in July 2026 and works full-time on the analytical database behind them: its dimensional model, the jobs that load it, and the replication that feeds it.

Challenge

  • Reports could not be served from the transactional database
  • Seven dimensions depend on each other and must load in a fixed order
  • Fact tables grow daily and need partitions created ahead of the data
  • The analytical database has to follow the transactional one continuously, including tables added later
  • Report functions returned missing or wrong data once real data arrived

Solution

  • Implemented dimensions, including the economic-operator dimension with a simplified change history and the catalogue of event types
  • Built the orchestration that loads all seven dimensions in sequence
  • Configured a recurring job that refreshes the intermediate data layer every 10 minutes, and the execution order across the steps of the ETL chain
  • Configured the nightly job that creates partitions for the fact tables
  • Set up logical replication from the transactional database to the analytical one, added monitoring for it, and brought newly added tables into replication
  • Set up Bytebase for database change management
  • Prepared one of the system's reports and its extracts for deployment; found and fixed missing and wrong data in the report's functions; aligned the physical structure of the database for it
  • Fixed the functions that depended on the “current record” flag

Result

Seven dimensions load in sequence on a schedule, the analytical database follows the transactional one by replication, and one of the system's reports with its extracts was prepared for deployment and corrected against real data. The work continues.

Technology Stack

SQLETLDimensional ModelingLogical ReplicationTable PartitioningBytebaseGitLab

Key Features

  • Dimensional model with change history
  • Sequential scheduled loads
  • Nightly partition management
  • Monitored logical replication
  • Report functions and extracts

Have a similar project in mind?

Let's Talk