问题描述
我在哪里可以设置AllegroGraph的 memoryLimit
查询选项?
Where can I set AllegroGraph's memoryLimit
query option that is mentioned here?
我使用AllegroGraph 4.9,并且在执行时仍会收到QUERY_MEMORY_LIMIT_REACHED错误
I am using AllegroGraph 4.9 and keep getting QUERY_MEMORY_LIMIT_REACHED errors when I execute one of my SPARQL queries via WebView.
日志说:
Query has reached memory limit of 4,294,967,296 when requesting 1,089,870,432 additional bytes.
<LISP query plan(?) goes here>
Consider restructuring your query or increasing the value of the :memoryLimit query option.
我会尝试改善我的查询,但我想知道
I will try to improve my query, but I would like to know where that memoryLimit
option lives, too.
推荐答案
AllegroGraph允许您在配置中指定多个配置选项文件或在每个特定查询中。为了在查询中指定一个选项,AllegroGraph扩展了PREFIX语法。例如,要更改内存限制,您可以预先添加:
AllegroGraph lets you specify several configuration options either in the configuration file or in each specific query. To specify an option in the query, AllegroGraph extends the PREFIX syntax. For example, to alter the memory limit, you would pre-pend:
PREFIX franzOption_memoryLimit: <franz:8g>
这是不常见的需要这样做,所以如果你可以包括更多的细节,帮助诊断和改善的东西。另一个有用的选项是记录查询:
It's not common to need to do this so if you can include more details on the query, we can help diagnose and improve things. Another useful option is to log the query:
PREFIX franzOption_logQuery: <franz:yes>
请联系AllegroGraph支持[email protected]获取更多帮助。
Please contact AllegroGraph support at [email protected] for more help.
这篇关于AllegroGraph memoryLimit查询选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!