Americans spent $135.5 billion on back-to-school and back-to-college shopping in 2023, making the season a …
Cloud-native POS platform for seamless omnichannel customer experience.
A single hub for all promotions campaigns.
The most advanced synchronization solution for databases and file systems.
Data configuration and batch automation across different disparate systems and vendors.
Americans spent $135.5 billion on back-to-school and back-to-college shopping in 2023, making the season a …
Google may have introduced the concept of micro-moments almost ten years ago, but year after …
We’ve all heard the words omnichannel and seamless shopping by now…but achieving it can be …
Sybase ASE (more recently known as SAP Adaptive Server Enterprise), announced its end of mainstream …
Azure Blob Storage has become a popular option for storing files in the cloud. And …
SymmetricDS now supports loading data and changes into RabbitMQ, so you can capture changes in …
Jumpmind Powers Point of Sale and Promotions Execution for Landmark Retail, One of the Largest …
Retail Technology Leader Jumpmind to Enable Mobile Point of Sale and Inventory Management for DTLR/VILLA …
The retailer is charting its next chapter with retail technology modernization to power inspired omnichannel …
Jumpmind Powers Point of Sale and Promotions Execution for Landmark Retail, One of the Largest …
Jumpmind Launches The Jumpmind Cloud, Powered by Amazon Web Services New Offering Provides Newfound Application …
Retail Technology Leader Jumpmind to Enable Mobile Point of Sale and Inventory Management for DTLR/VILLA …
Cloud-native POS platform for seamless omnichannel customer experience.
A single hub for all promotions campaigns.
The most advanced synchronization solution for databases and file systems.
Data configuration and batch automation across different disparate systems and vendors.
SymmetricDS has the ability to sync between databases and between files. With the 3.9 release, SymmetricDS will link the two which will enable you to route data from a CSV file into a database table. This will make it significantly easier to directly sync your data. In this article, I will walk through the steps to replicate CSV data to a table.
First create a target table on the target node by running the following SQL command. You may also choose a pre-existing table to serve as your target table.
create table person (
id integer not null,
first_name varchar(50) not null,
last_name varchar(50) not null,
primary key(id)
);
Next, configure SymmetricDS. The first step in configuration is to add a CSV Router. In the SymmetricDS Pro web console go to the Configure->Routers screen.
Create a new router of type CSV and specify the target table as well as the appropriate group link for communication between node groups.
The second step is to create a file trigger. Navigate to Configure->File Triggers.
If it is not already, enable file sync for each node.
Create a new file trigger. The base directory in which the files will be found should be specified as well as the files that will set off the trigger. A file trigger is necessary for each target table that uses a CSV Router.
Finally, go to Configure -> File Routing.
Add a new file routing link to join together your csv file trigger and csv router.
Now, you can add a new CSV file to your base directory. For this example, I’ve created the file ‘person1.csv’.
Navigate to Manage ->Jobs. Make sure that the File Sync Tracker, File Sync Pull, and File Sync Push jobs are started for each node. If they are stopped, start them.
Wait 1 minute for File Sync Pull to pull down your new file and then go to Explore and run the following SQL command on your target table to view the changes.
select * from person;
Now you know how to load CSV files into a database table using a CSV Router in SymmetricDS.