Skip to content

Limits and performance

Setting Range Empty means
Maximum Pens 1 to 200 200
Maximum Range (days) 1 to 36,600 No limit
Maximum Export Points 1,000 to 20,000,000 20,000,000

See Configuration settings.

What Limit
Stored values read one by one for bars, per pen 2,000,000 (then the historian's aggregates)
Values for a median, per read 2,000,000
Bars per pen 5,000
Bars in one answer, over every bar pen 200,000
Stored values read to settle a zoomed-out line's unsure slices, per pen 200,000, in at most 50 reads
Points read by one export 20,000,000
Notes in one read The newest 1,000 over every tag
Alarm overlay Ranges up to 31 days
Alarms read per tag for limits 500
Favourites per user and configuration 500
Zoom history 50 steps
  • Opening a chart reads each pen's history once.
  • Live costs only new values: a live chart appends, it never re-reads its window. The gateway sends an empty batch at least every 5 seconds so a chart can tell a silence from a lost connection.
  • Bars on a live range are read again every 30 seconds, only the periods still open.
  • Limits from a tag are read again every 15 seconds while a visible pen shows them.
  • Hover and synchronised charts happen in the browser and cost the gateway nothing.
  • The Charts list reads every chart the user may see at once. Tested with 5,000 saved charts in one configuration: a user who sees 4,000 of them gets the list in 0.4 to 2 seconds.
  • The configuration's status checks its tables in the background about every 15 seconds.

History, bars, export pages, notes and alarms never hold a Perspective request thread. They wait on the session's read queue (at most 1,000 waiting per session, 10,000 on the gateway) and are answered when read or at the request's deadline. A read that is replaced or expires is dropped unread.

Saved charts, share roles, browse, search, tag info and export starts run on a work queue of their own (at most 3 threads per session), so history and live values never wait behind a slow chart database, user source or tag provider.

Each session has 3 places on the query threads. A read a historian never ends gives its place back at its deadline and is made up for with a spare thread (at most 8 over the gateway). A historian that holds 2 such threads has its new reads refused as busy ("The gateway is busy. Try again in a moment."), until one ends. The gateway log says so once.

What Gives up after
A chart database statement 30 s
A tag search 30 s, with what it found
One platform history read 90 s
A history request 120 s
The browser's wait for an answer 150 s

These are response deadlines. The platform's history API has no timeout or cancel (8.3.6), so a read a historian never ends keeps its thread after its request has answered.

  • Use bars per period, not raw lines, for long ranges of fast tags: one bar per hour over a month is 720 bars.
  • Set a Maximum Range on configurations used by many people.
  • Prefer a few charts with several pens over many charts with one pen on a busy dashboard.
  • Give tags that should show outages a Max Time Between Samples rather than a very short sample rate. See Historians, gaps and quality.