导入CSV文件时,TypeDB中的Java堆空间错误



我尝试使用Python将一些CSV文件导入到我的TypeDB模式中,得到以下错误:

Traceback (most recent call last):
File "C:Userspanxx006Desktoptestmigrate.py", line 65, in <module>
build_test_graph(inputs=inputs)
File "C:Userspanxx006Desktoptestmigrate.py", line 9, in build_test_graph
load_data_into_typedb(input, session)
File "C:Userspanxx006Desktoptestmigrate.py", line 21, in load_data_into_typedb
transaction.commit()
File "C:Userspanxx006AppDataLocalProgramsPythonPython39libsite-packagestypedbconnectiontransaction.py", line 95, in commit
self.execute(transaction_commit_req())
File "C:Userspanxx006AppDataLocalProgramsPythonPython39libsite-packagestypedbconnectiontransaction.py", line 80, in execute
return self.run_query(request, batch).get()
File "C:Userspanxx006AppDataLocalProgramsPythonPython39libsite-packagestypedbstreambidirectional_stream.py", line 136, in get
return self._stream.fetch(self._request_id)
File "C:Userspanxx006AppDataLocalProgramsPythonPython39libsite-packagestypedbstreambidirectional_stream.py", line 84, in fetch
raise error
typedb.common.exception.TypeDBClientException: Java heap space
Please check server logs for the stack trace.

你能告诉我如何解决这个错误吗?我使用TypeDB 2.6.3

将您的TypeDB版本升级到最新版本将有助于解决此错误。在撰写本文时,TypeDB 2.13.0是最新的版本,它包含了许多对内存使用的改进,因此您应该在将来看到更少的此类错误。

你可以从GitHub的发布页面下载最新版本的TypeDB: https://github.com/vaticle/typedb/releases

完全披露:我为TypeDB的创造者Vaticle工作。

最新更新