Below are 3 methods:
Option 1: Embedding or Storing data in analysis using TIBCO Spotfire AnalystData can be self contained in the analysis itself to speed up the loading analysis. General steps:
- Data tables can be embedded through (Edit > Data Table Properties > Embedded in Analysis)
- Data tables can also store data through "Save As > File/Library Item > Review Data Loading Settings" or in expanded Data Panel > Select any data table > Source View
See
KB: 000031616 Saving an analysis file with “Stored data” does not set the data table to embedded for an overview
While selecting the approach certain points to be considered:
- Embedding data tables approach will sometimes disable linked to source selection in data table properties after analysis gets saved and reopened as that data table would have data from multiple data sources through insert rows or columns. If there is need to refresh that data table manually, data table will need to be replaced performing all the transformation/merging data steps again
- Stored data approach will not change the selection (Embedded in analysis or Linked to source) in Data Table properties
- Stored data approach is helpful when data table has merged data from multiple data sources either using insert rows or columns in Data table which needs to be embedded as stored data does not impact the selection in data table properties so none of the selection will be get disabled and can be refreshed whenever needed
Option 2: Embedding the analysis using TIBCO Spotfire Automation Services based on predefined schedulesIf the analysis needs to be embedded periodically, this approach can be used as this has the added benefit of being able to schedule the Automation Services job at a specific time (for example, at 7am daily before business hours). See
KB 000021541 How to schedule an Automation Services job using the Microsoft Windows Task Scheduler for more details. General Steps:
- Create a Automation Services Job with following steps:
- Open Analysis from Library (which will be linked to Information Link/Data Connection)
- Save Analysis to Library (Select Embed data in Analysis option and save as the embedded analysis. Do not overwrite the existing one)
- Schedule this automation job based on specific intervals to fetch new data from Database (for example, at 7am daily before business hours)
Newly embedded analysis can now be opened up daily by users in TIBCO Spotfire Analyst.
Considerations:
Option 3: Cache the data from your database as an SBDF file in the TIBCO Spotfire Library at particular intervalsThis approach has a few key benefits:
- Embedding data in the analysis (like in Option 1 or 2) would not be helpful if the cached data needs to be used in multiple analyses
- If changes need to be made in analysis containing multiple data connections/information links which takes say 2-3 hours loading on TIBCO Spotfire Analyst, analysis will again hit the database and take time in loading. This needs to be done every time any changes need to be made in analysis
General:
- Create a analysis having data table linked to source containing information link/data connection with say SQL Server DB (one which you wanted to embed in final analysis)
- Create a Automation Services Job with following steps:
- Open Analysis from Library (which you created in step 1)
- Export Data Table to Library (Fill up the details)
- Schedule this automation job whenever needed and it will generate/overwrite SBDF file in the mentioned TIBCO Spotfire library location
- Now create the final analysis which will not take time loading by pointing the data tables to the SBDF files and have it linked to source to always fetch latest data from SBDF
This will open up the analysis much faster in TIBCO Spotfire Analyst as well as it will hit your TIBCO Spotfire application database every time any user opens the analysis, instead of the original data source
Considerations: