English 中文(简体)
我能做些什么来提高使用Derby的批量数据的业绩?
原标题:What can I do to enhance the performance of bulk data loading using Derby?

I am using Derby In-Memory DB. I need to perform some data loading from csv files in the beginning. For now, it takes about 25 seconds to load all the csv files into their tables. I hope the time can be reduced. Due to the data files are not very large actually.

我所做的是利用从失败中起的内在程序。

{CALL SYSCS_UTIL.SYSCS_IMPORT_TABLE (?,?,?, , , " , UTF-8 ,1 )} or
{CALL SYSCS_UTIL.SYSCS_IMPORT_TABLE (?,?,?, , , " , UTF-8 ,0 )}

唯一的特殊事项是,一个表格中的数据有时被分成许多小的卷宗。 因此,我不得不逐一装载。 如果我能够把他们合并在一起,我就进行了测试,只有16秒。 然而,由于用户需要,我无法消除这一特征。

Is there anything I can do to reduce the time of loading data? Should I disable log or write some user-defined function/procedure or any other tune can be done? Any advice will be fine.

感谢!

最佳回答

Use H2 instead of Derby, and use the CSVREAD feature. If that s still too slow, see the fast import optimization, or use the CSV tool directly (without using a database). Disclaimer: I wrote the CSV support for H2.

问题回答

暂无回答




相关问题
What to look for in performance analyzer in VS 2008

What to look for in performance analyzer in VS 2008 I am using VS Team system and got the performance wizard and reports going. What benchmarks/process do I use? There is a lot of stuff in the ...

SQL Table Size And Query Performance

We have a number of items coming in from a web service; each item containing an unknown number of properties. We are storing them in a database with the following Schema. Items - ItemID - ...

How to speed up Visual Studio 2008? Add more resources?

I m using Visual Studio 2008 (with the latest service pack) I also have ReSharper 4.5 installed. ReSharper Code analysis/ scan is turned off. OS: Windows 7 Enterprise Edition It takes me a long time ...

Manually implementing high performance algorithms in .NET

As a learning experience I recently tried implementing Quicksort with 3 way partitioning in C#. Apart from needing to add an extra range check on the left/right variables before the recursive call, ...

How do I profile `paster serve` s startup time?

Python s paster serve app.ini is taking longer than I would like to be ready for the first request. I know how to profile requests with middleware, but how do I profile the initialization time? I ...

热门标签