473,386 Members | 1,602 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

db2 export - how to make it faster

Is there anybody out there who have any idea why EXPORT is relatively slower
when putting the output file on a network drive - map drive from onother PC
compared to putting it on my local PC drive (faster). Is there any
workaround or tuning config that is available?

Your help would be highly appreciated.

maricel
Nov 12 '05 #1
6 16900
maricel wrote:
Is there anybody out there who have any idea why EXPORT is relatively slower
when putting the output file on a network drive - map drive from onother PC
compared to putting it on my local PC drive (faster). Is there any
workaround or tuning config that is available?

Your help would be highly appreciated.

maricel


*BEFORE* I would start looking into DB2 tuning - I would verify that I
am really describing correctly the problem:

Run a benchmark writing a relatively large file - (say 10Mb) with a
relativel small records (say 100b) on local drive - at least 10 times.

Repeat the same using networked drive.

Have a DB2 export command creating on local drive result file of the
same size as benchmark above - also at least 10 times.

Repeat the same using networked drive.
Now you have a base to compare results - assuming that environment for
all 4 benchmark runs above was consistently the same.
Jan M. Nelken

Nov 12 '05 #2
Hi Jan,

Thanks for this. Actually, i'm the only one connected to the network, so, I
guess network load should not be the problem.
I have noted that the EXPORT IXF file type takes relatively longer to
transport via a network drive compared to export DEL file type.

Any idea on this?

maricel

"Jan M. Nelken" <Un**********@Invalid.Domain> wrote in message
news:ZI********************@news04.bloor.is.net.ca ble.rogers.com...
maricel wrote:
Is there anybody out there who have any idea why EXPORT is relatively slower when putting the output file on a network drive - map drive from onother PC compared to putting it on my local PC drive (faster). Is there any
workaround or tuning config that is available?

Your help would be highly appreciated.

maricel


*BEFORE* I would start looking into DB2 tuning - I would verify that I
am really describing correctly the problem:

Run a benchmark writing a relatively large file - (say 10Mb) with a
relativel small records (say 100b) on local drive - at least 10 times.

Repeat the same using networked drive.

Have a DB2 export command creating on local drive result file of the
same size as benchmark above - also at least 10 times.

Repeat the same using networked drive.
Now you have a base to compare results - assuming that environment for
all 4 benchmark runs above was consistently the same.
Jan M. Nelken

Nov 12 '05 #3
maricel wrote:
Hi Jan,

Thanks for this. Actually, i'm the only one connected to the network, so, I
guess network load should not be the problem.
I have noted that the EXPORT IXF file type takes relatively longer to
transport via a network drive compared to export DEL file type.

Any idea on this?

maricel


I was not thinking about network load. You do go through significantly
different code path of the underlying components of operating system
when writing to redirected drive.

As for second question:

D:\>db2 connect to sample

Database Connection Information

Database server = DB2/NT 8.1.4
SQL authorization ID = DB2ADMIN
Local database alias = SAMPLE
D:\>db2 export to employee.del of del select * from employee
SQL3104N The Export utility is beginning to export data to file
"employee.del".

SQL3105N The Export utility has finished exporting "32" rows.
Number of rows exported: 32

D:\>db2 export to employee.ixf of ixf select * from employee
SQL3104N The Export utility is beginning to export data to file
"employee.ixf".

SQL3105N The Export utility has finished exporting "32" rows.
Number of rows exported: 32

D:\>dir employee.*
Volume in drive D is Data Disk 1
Volume Serial Number is 7FEA-930E

Directory of D:\

31/01/2004 20:20 3,761 employee.del
31/01/2004 20:21 17,929 employee.ixf
2 File(s) 21,690 bytes

any thoughts about those results?
Nov 12 '05 #4
Have a look at the file sizes:
IXF export files are usually bigger than DEL export files, so that might
explain the difference.

maricel wrote:
Hi Jan,

Thanks for this. Actually, i'm the only one connected to the network, so, I
guess network load should not be the problem.
I have noted that the EXPORT IXF file type takes relatively longer to
transport via a network drive compared to export DEL file type.

Any idea on this?

maricel

"Jan M. Nelken" <Un**********@Invalid.Domain> wrote in message
news:ZI********************@news04.bloor.is.net.c able.rogers.com...

maricel wrote:

Is there anybody out there who have any idea why EXPORT is relatively

slower

when putting the output file on a network drive - map drive from onother

PC

compared to putting it on my local PC drive (faster). Is there any
workaround or tuning config that is available?

Your help would be highly appreciated.

maricel

*BEFORE* I would start looking into DB2 tuning - I would verify that I
am really describing correctly the problem:

Run a benchmark writing a relatively large file - (say 10Mb) with a
relativel small records (say 100b) on local drive - at least 10 times.

Repeat the same using networked drive.

Have a DB2 export command creating on local drive result file of the
same size as benchmark above - also at least 10 times.

Repeat the same using networked drive.
Now you have a base to compare results - assuming that environment for
all 4 benchmark runs above was consistently the same.
Jan M. Nelken



--
Anton Versteeg
IBM Certified DB2 Specialist
IBM Netherlands
Nov 12 '05 #5
If you search the net for windows and io performance, you'll find that
windows is slower when accessing shares, etc.
I guess that ntfs junctions and reparse points or pipes also suffer some
degradation.

Just for testing purpose, copy a big file to d:\ then on \\yourhost\d$\.
You'll notice a difference even if it's the same local location.

ex :
260mb
32 vs 36 sec

I can't provide you registry keys or any trick to improve this.
I'd have to check for myself first.

PM

"maricel" <ma*****@xtra.co.nz> a écrit dans le message de
news:%7********************@news.xtra.co.nz...
Is there anybody out there who have any idea why EXPORT is relatively slower when putting the output file on a network drive - map drive from onother PC compared to putting it on my local PC drive (faster). Is there any
workaround or tuning config that is available?

Your help would be highly appreciated.

maricel

Nov 12 '05 #6
I can see the big difference. It shows that IXF file format is at least 5x
bigger than DEL.
Any other thoughts on why IXF file export is slower on Network Drive
compared to IXF export on local drive?

"Jan M. Nelken" <Un**********@Invalid.Domain> wrote in message
news:Lz*****************@twister01.bloor.is.net.ca ble.rogers.com...
maricel wrote:
Hi Jan,

Thanks for this. Actually, i'm the only one connected to the network, so, I guess network load should not be the problem.
I have noted that the EXPORT IXF file type takes relatively longer to
transport via a network drive compared to export DEL file type.

Any idea on this?

maricel


I was not thinking about network load. You do go through significantly
different code path of the underlying components of operating system
when writing to redirected drive.

As for second question:

D:\>db2 connect to sample

Database Connection Information

Database server = DB2/NT 8.1.4
SQL authorization ID = DB2ADMIN
Local database alias = SAMPLE
D:\>db2 export to employee.del of del select * from employee
SQL3104N The Export utility is beginning to export data to file
"employee.del".

SQL3105N The Export utility has finished exporting "32" rows.
Number of rows exported: 32

D:\>db2 export to employee.ixf of ixf select * from employee
SQL3104N The Export utility is beginning to export data to file
"employee.ixf".

SQL3105N The Export utility has finished exporting "32" rows.
Number of rows exported: 32

D:\>dir employee.*
Volume in drive D is Data Disk 1
Volume Serial Number is 7FEA-930E

Directory of D:\

31/01/2004 20:20 3,761 employee.del
31/01/2004 20:21 17,929 employee.ixf
2 File(s) 21,690 bytes

any thoughts about those results?

Nov 12 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

205
by: Jeremy Siek | last post by:
CALL FOR PAPERS/PARTICIPATION C++, Boost, and the Future of C++ Libraries Workshop at OOPSLA October 24-28, 2004 Vancouver, British Columbia, Canada http://tinyurl.com/4n5pf Submissions
5
by: David | last post by:
I am a little confused by DB2 Backup and Export. I used "db2 backup db QAS to /dev/rmt0" backuping 650GB database to a IBM LTO 3581 (1 drive) only 11 hours. But I used "db2 export to /dev/rmt0...
1
by: plaul1 | last post by:
I am going to be using the export utility to export large amts of data out of UDB. Does anyon have any benchmark numbers available. What is the rule of thumb, how many gig/hr/cpu can be exported...
4
by: Jiro Hidaka | last post by:
Hello, I would like to know of a fast way to export data source data into an Excel sheet. I found a way from C# Corner(Query Tool to Excel using C# and .NET) which is a neat little way of...
3
by: Brad | last post by:
In a Vista/IIS7 asp.net app, a coded crystal report export is crashing IIS7....but it works just fine in visual studio's cassini web server. And if I create a web form and use the crystal...
7
by: eselk | last post by:
I'm doing some speed tests. I created a brand-new table, with just one "Long Integer" field. I'm testing adding 1000 records. If I use the "Export" feature in Access, it takes only a few seconds...
5
by: svdoerga | last post by:
Hello! I currently have a button that exports a query, customized by the user on the form, to excel. The data that is exported is compared to older values (from a history table) and depending on...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.