2012-02-17 83 views
1

我開始炫技服務上使用以下配置窗口(這是配置文件的重要組成部分):通過連接字符串中設置服務器炫技連接超時

ResultSetMaxRows   = 10000 
MaxQueryCostEstimationTime = 40000 ; in seconds 
MaxQueryExecutionTime  = 60000 ; in seconds 
DefaultQuery    = select * where{?x ?y ?z} 
DeferInferenceRulesInit  = 0 ; controls inference rules loading 

我使用的dotNetRDF庫使本地查詢到本地服務器(庫使得超時30秒),但我可以通過啓動對象時發送一個連接字符串覆蓋默認的超時:在30秒

VirtuosoManager manager = new VirtuosoManager("Server=localhost;Uid=dba;pwd=dba;Connection Timeout=500"); 

它仍然超時(如果我的查詢非常複雜,足以在mor中處理比30秒...

我的項目使用了一些複雜的查詢,所以我需要儘可能大的超時屬性,我如何覆蓋該屬性?

+1

回答在http://answers.semanticweb.com/questions/14568/overriding-dotnetrdfdatavirtuoso-timeout-property – RobV 2012-02-29 00:18:25

+0

也在[ServerFault](http://serverfault.com/questions/361067/setting-the-連接超時功能於演奏家 - 服務器 - 經由連接串/) – TallTed 2014-09-25 20:13:04

回答