The 10th tip of DB Query Analyzer
--Higher efficiency to export SQL result by DB Query Analyzer than B2
MA Gen-feng
( GuangDong Unitoll Services incorporated, GuangZhou 510300)
Abstract In the latest version 4.01, a useful function is added in DB Query Analyzer. Users can save the result fetched with too many records into file in high efficiency. Further more, you can define the restrict character and determine ‘Export result to file with title’ before to save the result fetched. So that you can export tables in some certain requirement that ‘s not permitted in DBMS.
Key words DB Query Analyzer;Save the result fetched;DB2
1 Brief introduction of DB Query Analzyer
DB Query Analyzer is presented by Master Gen feng, Ma from Chinese mainland. It has English version and Simplified Chinese version.
After four years research, design, development and about three months integrated test based on Oracle, Sybase, DB2, Informix, MS SQL Server, Mysql, MS ACCESS, FoxPro and Paradox, DB Query Analyzer is presented to the world In 2007. From then on, The continuous improvement of function or interface has been done. Now the latest version is 3.02.
Untill now it has been downloaded about ninety thousand times in the famous software download websitehttp://xiazai.zol.com.cn/. It is one of the twenty most frequently download software.
In the New products & Tools reviews of programmer second issue of 2007, DB Query Analyzer had been strongly recommended.
By November 9, 2009 ,you would get 1500 thousand result with the key word ‘DB Query Aanlyzer’ in Google. In Baidu you would get 40 thousand result.
Out of question, DB Query Analyzer is one of the few excellent Client Tools in the world for its’ powerful function, friendly interface, easy operation and applicability to every production of RDBMS.
2 New character in version 4.01
In the latest version 4.01, a useful function is added. Users can save the result with too many records into file in high efficiency. I will show you how it works in the article.
The result of SQL can be written to file directly after you select “Query -> Display -> SaveToFile”. This function is much valuable in the case when records count is more than 20 thousand. If records count is between 10 thousand and 20 thousand, you can also display the result by Grid, but you can’t display the result by Text because it would be low efficient.
3 Example to show the high efficient function
I will show you a comparison between the high efficiency of saving result to file by DB Query Analyzer and Export function by DB2 server IBM 670 with 64GB memory, 8 physical CPU, 16 logical CPU, Serial storage. To export about 11,000,000 records uses about 15 minutes with DB Query Analyzer in PC Client. Of course, it includes the time that almost 2GB data transfer from Server to PC Client. To export about same mount records uses about 6 minutes with DB2 export function in the DB2 server IBM 670 above. The file exported is about 2GB.
Figure 1 shows it costs about 14 minutes to export sql result by DB Query Analyzer. While it costs about 6 minutes by DB2 EXPORT. At first glance, DB2 EXPORT has the higher efficiency. But In more case, we might have the result file in our PC Client. So do you ever think how long the process of 2GB file FTP to the PC Client would cost you?
In the part 4 , I will show you why DB Query Analyzer has the higher efficiency.
Figure 1 Connect to DB2, Export 11,000,000 records within about 14 minutes, file size is about 2GB in PC Client
Figure 2 Export 11,000,000 records within about 6 minutes, file size is about 2GB in the DB2 server IBM 670 above
Figure 3 Connect to MS SQL Server, Export 2000 thousand records within about 2 minutes, file size is about 500MB
Figure 4 Connect to MS SQL Server, Export 2000 thousand records within nearly 14 seconds, file size is about 80MB
4 Higher efficiency to export SQL result by DB Query Analyzer than DB2
In more case, we might have the result file in our PC Client. So we has to think about the time used by the file FTP to the PC client.
Figure 5 About 15 minutes used the 2GB result file FTP to the PC Client
So the whole process will cost about 21 minutes by DB2 EXPORT and FTP. On the contrary, it only costs about 15 minutes by DB Query Analyzer.
DB Query Analyzer 5.03 download URL:
http://xiazai.zol.com.cn/detail/43/420901.shtml
http://www.unitedpowersoft.com/UpFile/DBQueryAnalyzer_English_503.rar
DB Query Analyzer Simplified Chinese version 5.03 download URL:
http://xiazai.zol.com.cn/detail/27/264455.shtml
My blogs are
http://blog.csdn.net/magenfeng
http://blog.sina.com.cn/magenfeng
http://user.qzone.qq.com/630414817
Remarks :
Please uninstall the former version first, then install the latest version.