Staging for MySQL - DSS 6 | Data Source Solutions Documentation
Documentation: Staging for MySQL - DSS 6 | Data Source Solutions Documentation
Staging for MySQL
While running Burst Integrate and Bulk Refresh, Data Source Solutions DSS can stream data into a target database straight over the network into a bulk loading interface specific for each DBMS (e.g. direct-path-load in Oracle), or else DSS puts data into a temporary directory (‘staging file') before loading data into a target database.
For best performance, DSS performs Burst Integrate and Bulk Refresh into MySQL location using staging files. DSS implements the file staging in MySQL by using either of the following methods:
-
Server Based Staging - The MySQL Server directly reads the staging files and ingest them into the target tables.
- DSS first writes data into the local staging directory on the machine where DSS is installed.
- DSS then uses the MySQL command
<b>load data</b>to ingest the data into the MySQL target tables. Here, the MySQL Server will directly read the staging files from the staging folder and load them into the target tables.
In this method, if DSS and MySQL Server are installed/running on the same machine, the MySQL Server can directly read and load the staging files into the target tables. If DSS and MySQL Server are installed/running on separate machines, then the staging files created by DSS must be made accessible to the MySQL Server, so that the MySQL Server can directly read and load the staging files into the target tables.
-
Client Based Staging - The MySQL Client directly reads the staging files and passes them to the MySQL Server, which then ingests them into the target tables.
-
Use case 1: DSS and MySQL Server are installed on separate machines.
This use case requires MySQL Client to be installed on the same machine where DSS is installed.
1. DSS first writes data into the local staging directory on the machine where DSS is installed. 2. DSS then uses the MySQL command `<b>load data local</b>` to ingest the data into MySQL target tables. Here, the MySQL Client will directly read the staging files from the staging folder and copy them into the machine where MySQL Server is installed. The MySQL Server will read the staging files received from the MySQL Client and load them into the target tables. - **Use case 2**: If you do not want to give the **FILE** privilege to the DSS database **User**. <div class="callout callout-note">This use case requires DSS, MySQL Server, and MySQL Client to be installed on the same machine.
-
1. DSS first writes data into the staging directory on the machine where DSS is installed.
2. DSS then uses the MySQL command `<b>load data local</b>` to ingest the data into MySQL target tables. Here, the MySQL Client will directly read the staging files from the staging folder and pass them to the MySQL Server, which will then read the staging files received from the MySQL Client and load them into the target tables.
<div class="callout callout-important">
For MySQL on cloud, this staging method is not possible since DSS and MySQL Server cannot be installed on the same machine.