Explainer
When to split tag history into separate historian databases
Short answer
Keep the ten tags in one historian unless their groups truly need different retention periods; that policy difference is the only sound reason to split history into separate databases. Query speed is not: a historian query reads the tags and time range requested, not whole files, so smaller stores make trends no faster and a cross-group trend may read several stores. Fix storage growth with deadbands first.
On this page
You have ten variables under one tag group and are weighing two reasons to spread their history across several historian databases: different retention per store — one kept a year, another two years, a third three — and faster queries because each file stays small. The answer is to split by retention only. Differing retention periods are the one sound reason to divide history stores, and in VTScada that means one history store per retention group. Query speed is not a reason: the historian is purpose-built for time-series and reads the tags and time range a trend requests, not whole files, so smaller stores return the same trend no faster. Before any split, tune the deadbands, because record density — not file layout — decides disk growth and scan work.
Retention is the one reason to split #
Retention is a policy, not a performance setting. Write down, per group of variables, how long history must stay readable and why: a customer contract, a warranty window, an environmental report. If all ten variables share one period, keep one store; there is nothing to gain by dividing it. If the periods differ, a single store must honor the longest period for everything, and that is the one case where separate stores earn their keep, because each store then runs its own retention.
The retention control belongs to the history-store configuration of the application that owns the tags, so each group needs its own store configuration; confirm the exact setting name and range for your installed version in the product documentation. The discipline is the same one required when setting historian pruning and retention for Ignition tag history: decide the period from the requirement, then make the store enforce it.
Tune the deadbands before touching the layout #
A deadband is how far a value must move before the historian stores another record; the logging interval is the longest the historian waits before storing one anyway. Together they set record density, and record density sets disk use, backup size and historian traffic between servers. A deadband barely wider than instrument noise can store an enormous number of records that carry no information.
Worked example, with illustrative inputs: a flow tag spanning 1000 L/min is evaluated every second and sits at setpoint with noise of ±5 L/min. With a 0.1% deadband (1 L/min) the noise crosses the deadband on nearly every evaluation, so the worst case is one record per second:
86,400 s/day × 365 day = 31,536,000 records per tag-year.
Raise the deadband to 1% (10 L/min) and the noise no longer triggers records. Suppose the process genuinely moves more than 10 L/min about 12 times an hour, each move storing two records (out and back):
24 records/h × 24 h/day × 365 day = 210,240 records per tag-year.
A one-minute logging interval covers the quiet stretches:
1 record/min × 1,440 min/day × 365 day = 525,600 records per tag-year.
New total: 210,240 + 525,600 = 735,840 records per tag-year, against 31,536,000 — about 43 times fewer, a 97.7% cut. For ten such tags that is roughly 7.4 million records a year instead of 315 million, with a matching cut in inter-server traffic. No layout change comes close: dividing a store leaves the record count identical. One limit on the tuning: never widen a deadband past a change operators must see, because an excursion smaller than the deadband is invisible in the trend. The order of operations is the same one that applies when cutting Ignition Tag Historian growth before compressing the table: fix the recording settings first, restructure the storage last.
What a retention split actually saves #
Carry the example forward with an illustrative policy: four tags are kept 1 year (shift-review levels), three for 2 years, three for 3 years (batch records). At 735,840 records per tag-year, the steady-state record counts are:
| Arrangement | Records at steady state |
|---|---|
| One store, everything kept 3 years | 10 × 735,840 × 3 = 22,075,200 |
| Four tags kept 1 year | 4 × 735,840 × 1 = 2,943,360 |
| Three tags kept 2 years | 3 × 735,840 × 2 = 4,415,040 |
| Three tags kept 3 years | 3 × 735,840 × 3 = 6,622,560 |
| Split total | 13,980,960 |
The split holds 8,094,240 fewer records — about 37% less disk, backup and restore time, whatever bytes-per-record you assume. That saving exists only because the periods differ. If all ten tags needed the same retention, the three stores would hold exactly what the single store holds, and you would be managing three configurations instead of one for nothing.
Why smaller stores do not query faster #
The second claimed benefit does not survive the query mechanics. VTScada's history store is purpose-built for time-series rather than a relational database — one reason it typically occupies far less disk than logging the same tags to SQL — and a history query reads the records of the requested tags over the requested time range. A ten-pen trend over one week scans the same records whether the pens live in one store or three; splitting changes where the bytes sit, not how many the trend must read. If anything, a trend whose pens span groups has to touch several stores.
When trends are slow, the levers that actually move response are the default time range, the number of pens, the record density a deadband review removes, and the disk under the store — an SSD helps, a split does not. What actually decides historian data retrieval speed is scan work, not file layout, and the same holds across historian platforms. If the real requirement is SQL-style reporting rather than trends, that is a different pattern — extracting PLC data into a relational database via OPC — not a reason to fragment the historian.
Set up the groups and prove them #
When the policy justifies the split, keep the mechanics simple:
- Give each retention group one history store: the tags are owned by the application whose store keeps that period, and that store's retention enforces it.
- Where one server has a small disk, run an application there with a filtered tag list, so it loads only the section of tags in its group and its disk carries only that history.
- Test with the screens operators actually use: a trend mixing pens from different groups over the longest range anyone routinely requests, and every report that pulls variables from more than one group.
- Confirm retention against the calendar: the 1-year group shows one year back and no more, the 3-year group three.
Change one thing at a time and keep a before-and-after record of disk use and trend response. The split is accepted only when the mixed-pen trends and reports return complete data.
The decision #
| Your case | Decision |
|---|---|
| All ten tags need the same retention | Keep one historian store. Tune deadbands and interval for growth; do not split. |
| Groups need different periods (for example 1, 2 and 3 years) | Split into one store per retention group — about 37% less stored in the worked case — and verify mixed-pen trends. |
| Trends are slow, retention is uniform | Do not split. Narrow the default range, cut pens, reduce record density, put the store on an SSD, then re-measure the same trend. |
| One server has a small disk | Run an application there with a filtered tag list so it loads only its group's tags. |
Retention differences divide the store; deadbands shrink it; disk speed serves it. In that order, with a measurement after each change.
Questions asked
How do I prove a wider deadband still shows every event operators need?
Before changing it, capture trends for events with known timing: batch steps, alarm trips, valve moves. Apply the new deadband, replay the same events, and check that each one still appears as a clear step at the right time. Keep a short overlap of old and new data if the platform allows it, and get the process owner's sign-off before removing anything.
Does splitting history into more databases reduce network traffic between servers?
No. Inter-server historian traffic follows how often values change and get stored, not which store holds them. A deadband review cuts both file size and that traffic, because fewer changes are stored and forwarded. A split only moves the same records into different files on the same servers.
Can each retention group run on its own server?
Yes, where the application design allows it. A server can run an application that loads only a filtered tag list, so its disk carries just that group's history. Check that servers holding the other groups still receive the values they need for displays and alarms, and that operators can open every group's trends from their usual screens.
What baseline should I record before changing the historian?
Five numbers: the disk space the history occupies, its weekly growth, each tag's deadband and logging interval, the response time of a fixed single-pen trend, and the response of the same range with all ten pens. Re-run identical trends after every change, because a different range or pen set makes the comparison meaningless.