- Role
- Developer and operator
- Period
- 2025 to now
- Status
- Daily and on schedule
- Stack
- Python, pandas, Playwright, MariaDB, SQL Server, Podman, Windows and Linux
Pipelines that feed it
Loaders that bring vendor KPIs, MML configuration and network database files into the portal's databases.
Why it exists
KPIs came from Huawei's OWS web, configuration from MML dumps and the network database as files shared in a WhatsApp group. Each went into its own database by hand, and one of them had credentials in plain text.
What I built
OWS daily automation
Downloads the daily KPI families for 2G, 4G, 5G and timing advance, plus TWAMP, and loads MariaDB and SQL Server together.
MML uploader
Parses Huawei MML configuration and uploads it to several databases at once, with encrypted credentials.
Auto NDB runner
Watches the WhatsApp group for the network database file, converts it and loads it at 07:00, 16:18 and 21:00 on weekdays.
Local mirror and migration map
A verified local copy of the production data, and a map of every tool and query that depended on the old cloud database before it moved.
What it adds up to
- 18 s
- 4G MML parse, down from 393 s on the same 68,330-row export
- 8,929
- rows for one TWAMP day of 6,658 sites, loaded in 7.9 s
- 29,859,704
- rows in the local mirror, equal to the production recount
- 103
- tools and assets mapped over 159,507 files before the migration
Engineering notes
- One vectorised pass. The MML parse spent minutes in a group-by over unique keys. Relabelling sectors in one vectorised pass took it from 393 to 18 seconds.
- Values fitted before the bulk copy. SQL Server's bulk copy fails with an unhelpful error on one bad value. Each value is fitted to its column first, so a bad row is reported, not fatal.
- Case-sensitive keys. Two measurement sessions differed only by letter case and merged in a case-insensitive column; the key columns now use a binary collation.
- Credentials out of the code. Database targets are encrypted with Windows DPAPI and errors are rewritten so they never print a password.
download 2 parts
sites 6,658
rows 8,929
MariaDB 7.9 s
