Release 5.3.1 Analyze Database Notes
1. Introduction
ConnectPlaza® 5.3.1 adds one column to the Analyze database, and up to three indexes that the agent never creates itself. Which of them you need depends on your database. The table below says what to do for yours. On MongoDB no SQL is needed.
When you update from 5.2.x or older, the Analyze database also needs the changes of 5.3.0. Follow Release 5.3.0 Analyze database notes first, then this page.
The SQL on this page is for MariaDB, MySQL and Microsoft SQL Server. For Progress OpenEdge, all statements are on Analyze on Progress OpenEdge.
The SQL uses the default table prefix ema. If you use another prefix, replace ema in the table names. emamsgprtprop has no prefix.
|
Add the column and the indexes for reading before you start the updated agent. Create the index for the agent filter after the column exists, and only then switch the filter on. |
| Your Analyze database | What to do |
|---|---|
MariaDB or MySQL |
Add the agent column, only when |
Microsoft SQL Server |
Set the |
Progress OpenEdge |
Follow Analyze on Progress OpenEdge: the columns, the indexes for reading and the index for the agent filter. Your database administrator adds the columns, unless you set |
MongoDB |
No SQL. When you use the agent filter, only step 2 of Show only one agent’s data. |
2. Add the agent column
Only on MariaDB, MySQL or Microsoft SQL Server, when connectplaza.analyze.jdbc.hbm2dll is validate or none. With the default update the agent adds the column itself. You need it also when you do not use the agent filter. With validate and without the column, Analyze does not start and the agent log shows Schema-validation: missing column [bo_agent] in table [ema_bo].
-- MariaDB / MySQL
ALTER TABLE ema_bo ADD COLUMN bo_agent VARCHAR(200) NULL;
-- Microsoft SQL Server
ALTER TABLE ema_bo ADD bo_agent VARCHAR(200) NULL;
3. Add the indexes for reading messages and Business Entities
Only on Microsoft SQL Server (Progress OpenEdge: see Analyze on Progress OpenEdge), whatever connectplaza.analyze.jdbc.hbm2dll is set to: the agent never creates these indexes. Without them, showing a message or a Business Entity reads a whole table. MariaDB and MySQL do not need them.
If ema_boattr already has an index whose first column is boa_bo_id, whatever its name (5.2.1 and older created idxboa_bo_id on boa_bo_id, boa_value, boa_attribute), skip the second statement. To check: EXEC sp_helpindex 'ema_boattr'; and look at index_keys.
On a large database this can take a while, so plan it outside busy hours.
CREATE INDEX idxmsgprtpropprt ON emamsgprtprop (msgprtid);
CREATE INDEX idxboaboid ON ema_boattr (boa_bo_id);
4. Show only one agent’s data
Only for agents that share one Analyze database. With this switched on, each agent shows only the data that it wrote itself in the trace overview, its filter lists, its export, the totals and the Business Entities list. It is off by default.
-
Only on MariaDB, MySQL or Microsoft SQL Server (Progress OpenEdge: see Analyze on Progress OpenEdge; MongoDB: skip this step): create the index once, after the column
bo_agentexists, because the index needs it. The column exists after the updated agent has started once withupdate, or after you added it in Add the agent column. The agent never creates this index.CREATE INDEX idxboagent ON ema_bo (bo_agent, bo_msgtsm);On a large database this can take a while. On SQL Server Standard it also blocks writes to the Business Entity table (
ema_bo) while it runs, so new Business Entities wait. Plan it outside busy hours. -
Switch the filter on for every agent that uses this database, then restart each agent. Add
connectplaza.analyze.agentfilter=truetoconf/connectplaza-analyze.properties. ConnectPlaza Deploy does not show this setting. The agent filters on its license key: an agent without a license key keeps showing the data of every agent.
After the start, the agent fills in the agent of the Business Entities that already exist, in the background, so they stay visible. It does this again at every start. So if an agent that is not updated yet writes new Business Entities, or the agent log shows "Stopped filling the agent of older business entities", restart the updated agent once more.