Transaction Groups vs SQLTag Historian

That is a good question. There are significant differences between SQLTags historian and transaction groups.

SQLTags Historian Pros

  • Data is only logged when the value changes, by exception according to a deadbad
  • Data is compressed using a built-in compression algorithm. An average we see around 54% compression.
  • Data is partitioned into separate tables by month to keep the size of the tables smaller for faster retrieval.
  • Minimal database maintenance
  • Fast retrieval times for large amounts of data
  • Easy to graph and view in tables

SQLTags Historian Cons

  • Not in control of the database schema. The data is in an open format but Ignition decides the schema.
  • Not very easy to query yourself because of the partitions and compression.
  • Have to use Ignition “Tag History” binding or scripting function to retrieve data.

Transaction Group Pros

  • You are in control of the database schema. You can put data into any format that you choose.
  • Easy to query yourself.
  • Can use the SQL language for more powerful analysis (of course you have to know the SQL language)
  • Has the ability to delete records older than a certain period of time
  • Groups can log data based on a schedule and by exception
  • Easy to graph and view in tables
  • Can use more components such as bar charts and pie charts since you are in control of querying the data

Transaction Groups Cons

  • Data is stored in a single table so you have to make sure the table doesn’t grow forever or performance will be slow
  • You don’t get compression or data partitioning
  • Bigger database size
  • You can only use around 100 tags per group
  • You have to know more about databases and SQL

As you can see transaction groups are used when the user wants to control the database and query the data any way they want. These people usually know more about SQL. The historian is great for beginner users since they don’t have to know much about SQL. However they are limited in how they can retrieve the data. We are constantly adding new features to our historian to make it more powerful in retrieving data.

You have to way the pros and cons to see which one really fits your needs. Hopefully this helps out.

6 Likes