RE: External table performance

  • From: "Mark W. Farnham" <mwf@xxxxxxxx>
  • To: <dmarc-noreply@xxxxxxxxxxxxx>, "'Oracle-L Freelists'" <oracle-l@xxxxxxxxxxxxx>, "'raza siddiqui'" <raza.siddiqui@xxxxxxxxxx>
  • Date: Fri, 12 Jan 2018 16:18:39 -0500

You wrote 50K records.

How many columns per record and what is the average length of a row?

Is your select a single table query on the external table?

Are there predicates on the external table, or are you filtering on something 
in the external table?

 

Perhaps you could supply your select statement to give us a clue what you are 
trying to do.

 

When you write that the storage is local, do you mean that the external table 
file is on your PC or do you mean that the external table file is local to the 
database server?

 

IF the file is on your PC, you might well be testing your network bandwidth and 
latency to the database server as opposed to anything else. The time to 
transfer the file to the database server using an OS level tool would give you 
a decent approximation of the  minimum time to complete.

 

IF the file is on your PC, the “records” are long, and you only need a few 
short columns from the “local” file, you might consider retrieving it via a 
pipe from sed so only the required data is transmitted across the WAN.

 

So far we can really only speculate what you are actually trying to accomplish.

 

mwf

 

From: oracle-l-bounce@xxxxxxxxxxxxx [mailto:oracle-l-bounce@xxxxxxxxxxxxx] On ;
Behalf Of Sanjay Mishra (Redacted sender "smishra_97" for DMARC)
Sent: Friday, January 12, 2018 3:32 PM
To: Oracle-L Freelists; raza siddiqui
Subject: Re: External table performance

 

Raza

 

You are right that data is not an issue and so is External table but Select 
with few where clause and it cannot be index.

 

Sanjay

 

On Friday, January 12, 2018, 2:42:22 PM EST, raza siddiqui 
<raza.siddiqui@xxxxxxxxxx> wrote: 

 

 

Sanjay

Firstly, a 50k datafile is not big by any standards...

Secondly, when External Tables get to be fairly sizeable, one option could be 
to load the data into a temp table in the Database, use it then truncate once 
done. 

Lastly, could the main select be the issue and not the External table or its 
data ? 

On 1/12/2018 11:28 AM, Powell, Mark wrote:

Sanjay, you did not identify your Oracle version and edition nor post the 
actual code you have an issue with but consider the following.

I do not have access to a server where I can test right now but I believe that 
you can select from an external table using parallel query if you are on EE.

 

Mark Powell

Database Administration

(313) 592-5148

 

 

  _____  

From: oracle-l-bounce@xxxxxxxxxxxxx  <mailto:oracle-l-bounce@xxxxxxxxxxxxx
<oracle-l-bounce@xxxxxxxxxxxxx> on behalf of Sanjay Mishra  
<mailto:dmarc-noreply@xxxxxxxxxxxxx> <dmarc-noreply@xxxxxxxxxxxxx>
Sent: Friday, January 12, 2018 2:23:40 PM
To: Oracle-L Freelists
Subject: External table performance 

 

Can someone share the Tuning activites that can be done for Selecting data from 
External table in 12c (12.1)? I am working on project that is getting every 
6hourly data as flat file from external source and then has to be selected from 
ORacle table for some processing. Data is only 50K records but Select is taking 
time. It is Local Storage where File is located. I don;t think we can have 
indexes yet and so checking experience from the experts.

 

Tx

Sanjay

 

-- 
  

Other related posts: