Importing huge amount of data from Oracle DB through Workbench 5
Hi All,
I'm new to Domo Administration, I have configured data set connecting to Oracle DB from workbench 5, I have following questions in regards to data loading issues.
1. I have two tables in Oracle DB (Table A & both these tables have huge amount of data. Table 'A' has 500 millions rows and 20 columns and Table 'B' has 400 millions rows of data and 10 columns. I would like to know what is best practice to import the data to Domo.
2. I tried to import these two tables(A & to Domo by increasing the 'Query Execution timeout' limit in workbench but the job keeps failing may be due huge amount of data.
Please let me know what is the best practice to load the data to Domo using workbench, also need to do daily upsert for past 30 days to the dataset.
OR
Loading these two tables to datawarehouse and connecting Domo to warehouse?
Is Domo feasable to load huge amount data?
Please let me know if you have any questions,
Thanks in advance!!
Comments
-
I work around this issue by selecting my data in chunks and running the job multiple times until all of the data has been uploaded. You will either need to do this by dates or a unique record identifier and replacement variables. Depepnding on the number of columns and size of the data in the rows will determine how many records you can upload at a time. My last scenario I was able to reliably upload 2M rows at a time and each row had a unique identifier named cluster which was numeric. Basically my SQL was:
select *
from table
where cluster between '!{lastvalue:cluster}!' and '!{lastvalue:cluster}!'+2000000
order by cluster
-----------------
Chris0 -
Thanks for the response and apologies for the delayed response.
I tried to apply the logic you have mentioned (select * from table where cluster between '{lastvalue:cluster}!' and '!{lastvalue:cluster}!'+2000000 order by cluster)
to do initial data load to the dataset and i see "Replacement parameter does not contain a value for column" error when i have executed the job on workbench, could you please let me know if im missing any steps, could you please help me with step by step procedure.
Thanks,
Hari
0 -
Hi Hari,
Please refer to this link for information on using lastvalue replacement variable. Section number 19 has the specifics.
cluster is the name of a column in my table that contains a unique value for each record. In the replacement variables tab is where you would put your field name and the starting value. Since my column is a number that increments for each record I set the cluster variable to 0 to select the first 2,000,0000 rows. After executing the cluster variable would be incremented to 2,000,000 so the query would retrieve the next 2,000,000 records by selecting all record where cluster is between 2,000,000 and 4,000,000.
If you do not have a numeric column then you could do chunk the data by date and execute the query selecting all records between a specified date range. The other important part of using this variable is to make sure you include the order by clause so that the lastvalue variable gets set correctly.
-----------------
Chris0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.6K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 101 SQL DataFlows
- 622 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 748 Beast Mode
- 59 App Studio
- 41 Variables
- 686 Automate
- 176 Apps
- 453 APIs & Domo Developer
- 47 Workflows
- 10 DomoAI
- 36 Predict
- 15 Jupyter Workspaces
- 21 R & Python Tiles
- 396 Distribute
- 113 Domo Everywhere
- 276 Scheduled Reports
- 7 Software Integrations
- 125 Manage
- 122 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 109 Community Announcements
- 4.8K Archive