IMD SolutionComputing LibraryShop main store

Comparison

Ignition tag historian versus transaction groups

Edge computing and IIoT Published 5 min read

Short answer

Use the Ignition tag historian for trends: it logs by exception against a deadband, compresses what it stores (around 54% average compression observed in the field), and partitions data into monthly tables. Keep transaction groups wherever an outside SQL consumer such as a PHP report reads a table you designed. Run both, and give each tag one home based on who consumes it.

On this page
  1. What each storage path is
  2. Tag historian versus transaction groups, side by side
  3. Where each path wins
  4. One month of a 20-tag group at a 3-second rate
  5. What outside SQL consumers depend on
  6. The decision, case by case
  7. Questions asked

Decide by who reads the data. Anything whose only consumer is a trend, chart, or history-aware table belongs in the tag historian, which logs by exception against a deadband, compresses what it stores, and partitions it into monthly tables. Anything an outside SQL consumer reads — PHP report scripts, other applications, structured operational records — stays in transaction groups, where you design the table and its columns. Plants that ask this question usually end up running both, with each tag assigned exactly one home.

What each storage path is #

The tag historian is Ignition's managed history store. Tag History Groups control which tags get recorded and the storage mode: on change, periodic, or against a deadband. Inserts are asynchronous and land in a complex structure of associated SQL tables that Ignition designs, not you. The format is open, but the practical way back out is the Tag History binding or the history scripting functions.

Transaction groups are a resource of the SQL Bridge module that synchronizes records between a SQL database and OPC addresses. The module provides four group types; the Historical Group is the plain one, mapping tag values into rows on a schedule. You control the table name, the columns, and when a row is written — on a timer, on a trigger, or inside event-driven logic that can also write back to the plant.

Tag historian versus transaction groups, side by side #

Decision point Tag historian Transaction groups
Schema control Ignition designs it; the format is open but the table set is not yours You name the tables and design every column
Write trigger On change, periodic, or deadband exception, set in the tag history group Timer or trigger execution; event-driven logic and write-back
Storage volume Compressed (about 54% observed field average) and split into monthly partitions One row per execution at the group's width; growth is yours to manage
Getting data out Tag History binding or history scripting functions Plain SQL SELECT against tables you named
Bundled records Per-tag history, not a row of related items One row carrying many related columns
Maintenance Managed partitions and pruning Your delete jobs and retention schedule

Where each path wins #

The historian wins when the consumer is a screen: charting and long-range retrieval are built in, and nobody has to maintain the tables underneath. For a short-term trend database in particular, the same trade-off is worked through in tag historian versus SQL Bridge storage for a short-term trend database.

Groups win when the row itself is the product: counters, runtimes, 24-hour running averages, records that bundle several related items, and event-driven reads or writes across multiple items. The historian is a retrieval engine for tag values, not a transaction engine.

If the question behind the question is whether a screen needs stored history at all, settle that first — a historian versus a plain OPC tag server is a different decision from this one.

One month of a 20-tag group at a 3-second rate #

Inputs, with where each comes from:

  • 20 tags in one Historical Group, executed every 3 seconds — the scale and rate a real plant deployment question used (20-25 tags at a 3-second interval).
  • 86,400 seconds per day (24 h x 3,600 s/h).
  • 30 days in the month.
  • 54% average compression — a field-observed average, not a specification.

The rule in words: rows per day equal seconds per day divided by the execution interval; stored values per day equal rows times tags; multiply by 30 for the month; the compressed equivalent is the value count times one minus the compression fraction.

The arithmetic:

  • 86,400 s / 3 s per execution = 28,800 rows per day.
  • 28,800 rows x 20 tag columns = 576,000 stored values per day.
  • 28,800 rows/day x 30 days = 864,000 rows in the month; 576,000 x 30 = 17,280,000 values.
  • 17,280,000 x (1 - 0.54) = 17,280,000 x 0.46 = 7,948,800, about 7.9 million value-equivalents after compression alone.

That 7.9 million is a ceiling, not a floor: it assumes every value changed. Deadband exception logging writes only changes, so a signal that sits at one value contributes almost nothing, while the group still writes its column every 3 seconds.

Decision: a group at this rate crosses three quarters of a million rows a month, 20 columns wide, and every row is yours to prune. Move every tag in it that no outside SQL consumer reads to the historian; keep in the group only the columns the reports actually name, and give that table a scheduled retention job.

What outside SQL consumers depend on #

A PHP script that computes generator runtime or capacity from group tables depends on more than column names:

  • Table and column names — change them and the queries fail or return the wrong fields.
  • What one row means — a timer snapshot and an event record answer different questions.
  • Timestamp semantics — duration math and time-window selection follow them.
  • Units and scaling — capacity totals and comparisons follow them.
  • Retention — old rows leave only because something deleted them.

Runtime is where a storage-path change bites hardest. Counting rows and multiplying by the interval is only correct while every interval produced a row; exception-based history breaks that assumption silently. Before wiring any delete condition into a group, read how a transaction group delete condition has removed every row. On the historian side, pruning is built in — setting historian pruning and retention for Ignition tag history covers that configuration.

The decision, case by case #

  • Trend-only signals: historian. Set the deadband from the signal's useful resolution, not from a storage target.
  • Data with outside SQL readers, bundled records, counters, runtimes, running averages, event transactions: transaction groups. Do not migrate those tables until the consumers are redesigned and validated against the new shape.
  • A revamp of a system that grew up on groups: hybrid. Keep the groups the reports depend on, add the historian per screen, and never copy every signal into both.

Questions asked

Can the same tag be stored by the historian and a transaction group?

Yes, and it is a normal pattern: the historian copy feeds trends while the group writes the structured rows a report reads. Give each path its own purpose and rate, and check the combined write load on the database server, because in most plants both connections write to the same server.

Why does the historian hold fewer records than the group for the same tag?

Exception logging stores a value only when it changes by more than the deadband, so a signal that sits still generates almost nothing, while a timer-driven group writes a row at every execution regardless. Fewer historian records is normal behavior, not a sign that the OPC link is down.

Can PHP query the tag historian tables directly?

Not practically. The data is spread across monthly partition tables and held in a compressed format, so the retrieval path is the Tag History binding or the history scripting functions inside Ignition. If an outside consumer needs plain rows, give that data a transaction group table instead.

Is the 54% compression figure something I can size a database with?

No. It is an observed average across real systems, not a specification. Your ratio depends on how often each signal changes and on its deadband. Log a representative week with the intended tags and settings, measure the actual growth, and size from that number.

Which transaction group type is the plain logging one?

The Historical group. The SQL Bridge module provides four group types, and the Historical type only maps tag values into rows on a schedule. The others exist for synchronizing data between the database and OPC items in both directions and for event-driven operations, not for simple storage.

Keep reading

  • Explainer

    Tag Historian vs SQL Bridge storage for a short-term trend database

    Use Tag Historian for plant-wide short-term trending because it stores narrow, on-change rows; keep SQL Bridge for PLC-to-database handshakes that need one wide row per group execution. Copy closed time partitions and the tag-mapping tables to the downstream historian, and prune only after the copy is confirmed.

    Edge computing and IIoT

  • Troubleshooting

    Why an Easy Chart pen shows no historian data

    A live tag with an empty Easy Chart pen is a historian write-path fault, not a tag fault. Clear the SQL Server no count option first; if it is already off, remove the trigger or procedure statement that makes the update return a result set, then let the store-and-forward cache drain.

    Edge computing and IIoT

  • How-to

    How to log Ignition tags every 15 minutes to a database

    To capture Ignition tag values on a strict 15-minute schedule, use a scheduled SQL Bridge transaction group that inserts a snapshot row into a database table, then point the report's query at that table. The tag historian is deadband-driven and stores asynchronously, so it cannot be set to one fixed 15-minute timestamp.

    Edge computing and IIoT