Sampling data in the graph
Siren Investigate provides methods to improve system performance for large volumes of data. In the Graph Browser, you can set a graph expansion limit, which controls how many records can be imported into a graph from a dashboard. This is called sampling.
Sampling allows you to load a limited number of records from a data set.
By default, Siren Investigate offers to display only the first 500 records of a data set. When you try to load more than 500 records, you are prompted with a message.
You can create and apply new sampling scripts to display a different sample of data in the graph.
Prerequisites
Before you begin, ensure that:
-
A saved search is available in the Dashboard app.
-
You have added the data from the saved search to your graph to ensure that a dashboard count is available in the system and can be picked up by the script.
Steps
-
Go to the Management app and click Scripts.
-
In the Edit Scripts screen, search for the example script called
Latest articles - default implementation
. -
Modify the script as required.
-
Give the modified script a new name and select Save as new script.
-
Click Save.
-
Open the Data model application.
-
Click the Options tab.
-
Under the Sampling on graph section, select the script that you defined from the dropdown menu.
The script appears in the dropdown menu only when the
getDefinition
function returnsapplicable: true`
.The Graph Browser can now automatically apply the sampling script that is configured with the saved search.