Blog/Case

Dahshenlin: Achieving Real-Time Finance-Operations Integration with a Modernized Data Foundation

2025-06-24 · YMatrix Team
#Case

01 Background

Dahshenlin is a leading listed pharmaceutical retail group in China and ranks among the top three in the pharmacy chain industry. It has consistently been recognized as:

“No. 2 in Sales Among Chinese Pharmacy Chains” “Top 500 Chinese Service Enterprises” “Top 100 Most Comprehensive Chinese Pharmacy Chains” “Top 100 Private Enterprises in Guangdong Province” “Outstanding Enterprise in Guangzhou”

The company’s core business strategy centers on expanding its pharmacy chain network. It holds a significant position in the pharmaceutical retail sector through aggressive store expansion and digital operations.

Dahshenlin currently operates over 30,000 stores, with direct operations spanning 21 provinces, autonomous regions, and municipalities.

As the enterprise continues to scale, store count and data volume grow rapidly. At the same time, demands for financial management granularity are increasing. The existing Oracle-based finance and operations system shows clear performance limitations in:

Financial data ingestion throughput Storage efficiency Report query and rendering speed A systematic upgrade of the data infrastructure has become urgent.

02 Upgrade Challenges

Challenge 1: Eliminating Data Redundancy

Single tables contain tens of millions of rows. Daily data growth exceeds 1.5 million rows. Monthly growth reaches 45 million rows. Annual新增 data is projected at over 540 million rows. This scale places high demands on multi-level data compression capabilities.

Challenge 2: Real-Time Report Rendering

With 30,000+ stores, concurrent queries from multiple locations stress the backend database’s processing power and reporting efficiency.

Challenge 3: High-Volume Concurrent Data Ingestion

During month-end peaks, 200+ voucher batches are written simultaneously—

including vouchers transferred from external systems (e.g., operations-finance integration, shared services) and those generated internally by the financial system. This creates significant write-load pressure on the database.

03 Enterprise Solution

YMatrix uses a distributed HTAP database architecture that combines transactional and analytical processing in a single system. This supports real-time transaction workloads and complex analytics simultaneously, enabling rapid use of business data in scenarios such as real-time reporting and financial balance analysis.

At the data coordination layer, the Domino in-database streaming engine synchronizes data in real time between the TP (transaction processing) zone and the AP (analytical processing) zone. Coupled with the MARS3 storage engine’s adaptive compression, this achieves multi-level compression of ODS-layer data and reduces redundancy.

The deployment consists of a five-node physical cluster:

One master node manages client connections and coordinates segment operations. Four segment nodes handle data storage and processing. Segment nodes are logically divided by workload type:

TP zone segments process high-frequency transactions, such as voucher entry and asset accounting. AP zone segments support analytical workloads, including financial report generation, intelligent analytics, and month-end closing calculations.

This architecture unifies operations and finance data, providing a single platform for upper-layer modules—such as event-based accounting, financial consolidation, and intelligent analytics. It delivers efficient, stable transaction processing alongside real-time analytical capabilities, with strong support for high-throughput data ingestion and complex query processing.

04 Business Benefits

Unified HTAP Stack

  • Eliminates the need for separate OLTP and OLAP systems.
  • A single database handles both transactions and analytics, reducing technical complexity and long-term maintenance costs.

In-Database Streaming Architecture

  • Enables real-time data transformation and analysis within the database—no external streaming pipelines required.
  • Financial reports achieve sub-second response times.
  • Supports T+2 high-speed month-end closing, accelerating financial reconciliation and analysis.

Cost Efficiency

  • The MARS3 storage engine delivers adaptive, multi-level compression with a 10:1 ratio.
  • Effectively manages the storage burden of 540 million+ annual新增 rows, significantly lowering hardware costs.

Extreme Write Performance

  • Supports parallel, centralized data ingestion that maximizes hardware utilization.
  • Handles:
    • 30 million+ journal entries per month
    • 500,000 entries per hour under normal load
    • Peak throughput of 1 million entries per hour
  • Fully satisfies the enterprise’s demanding requirements for high-volume, concurrent data writes during peak periods.