How to adjust Oracle JDBC Fetch Size to get better query speed.
1. Create an oracle.tdc file as below
<?xml version='1.0' encoding='utf-8' ?><connection-customization class='oracle' enabled='true' version='8.10'><vendor name='oracle'/><driver name='oracle'/><customizations><customization name='CAP_JDBC_USE_ADAPTIVE_FETCH_SIZE' value='no' /></customizations></connection-customization>
2.Create oracle.properties as below.
defaultRowPrefetch=10000
3. See Installing tdc and properties files for instructions on where to save the oracle.properties and oracle.tdc files. Example (Windows): C:\Users\xxxx\Documents\My Tableau Repository\Datasources.
4. Put the Oracle JDBC driver (e.g. ojdbc8.jar) into:
Windows: C:\Program Files\Tableau\Drivers
Mac: ~/Library/Tableau/Drivers
Linux: /opt/tableau/tableau_driver/jdbc
5. Start Tableau Desktop and use Oracle connector to connect. Tableau will use JDBC to connect to Oracle and the customized Fetch Size.
6. For quicker tuning suitable Fetch Size, after connecting to Oracle in Tableau Desktop, click Data - Extract data and choose top 2000,000 rows. Then enable performance recording to check how much time elapsed for the query. (Help - Settings and performance)
Since 2020.4 Tableau has introduced adaptive fetch size method.
001496900
0 KB
0 KB

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.