It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened,
visit the help center。
9年前关闭。
我正在运行一个带有grails的流程,以将信息从电子表格加载到数据库中。
我的本地计算机具有4GB RAM和iCore7 1.73GHZ处理器
该服务器计算机具有2GB RAM和一个Intel E7400 2.8GHZ双核
两者都带有500GB硬盘
在下面,您可以看到以秒为单位的时间,用于将电子表格中的不同信息加载到数据库中。
SERVER UBUNTU 9.04 64BIT
LOAD DICTIONARY TABLES STARTING...
LOAD DICTIONARY TABLES : TOTAL Processing time = 5.31
2011-05-30 11:49:39,210 [main] DEBUG dataImport.CatalogueDataLoader - LOADING CATALOGUE...
2011-05-30 11:49:39,582 [main] DEBUG dataImport.CatalogueDataLoader - CATALOGUE LOAD : TOTAL Processing time 0.371
LOCAL UBUNTU 10.10 64BIT
LOAD DICTIONARY TABLES STARTING...
LOAD DICTIONARY TABLES : TOTAL Processing time = 32.641
2011-05-30 12:36:38,875 [main] DEBUG dataImport.CatalogueDataLoader - LOADING CATALOGUE...
2011-05-30 12:36:40,214 [main] DEBUG dataImport.CatalogueDataLoader - CATALOGUE LOAD : TOTAL Processing time 1.338
CATALOGUE LOAD : TOTAL
仅适用于电子表格的1行,但我必须加载约7K行,因此时差很重要。在我的机器上花费了超过1个小时,而在服务器上仅花费了10分钟。我认为这没有道理。
有人可以帮助我理解这一点,甚至可以提出一些解决方案吗?