我正在将Couchbase客户端与python 3一起使用。我在沙发基存储桶中有461378条记录,使用的RAM /配额为3.77GB / 5.78GB。我正在尝试通过使用以下代码来检索文档:
list_of_rows = []
for idx, product_details in enumerate(CouchRepo.get_product_details_iterator()):
list_of_rows.append(get_required_dict_for_df(product_details["data"]))
但是我遇到以下错误:
in __iter__
raw_rows = self.raw.fetch(self._mres)
couchbase.exceptions._TimeoutError_0x17 (generated, catch TimeoutError): <RC=0x17[Client-Side timeout exceeded for operation. Inspect network conditions or increase the timeout], HTTP Request failed. Examine 'objextra' for full result, Results=1, C Source=(src/http.c,144), OBJ=ViewResult<rc=0x17[Client-Side timeout exceeded for operation. Inspect network conditions or increase the timeout], value=None, http_status=0, tracing_context=0, tracing_output=None>, Tracing Output={":nokey:0": null}>
基本上是内部代码,
while self._do_iter:
raw_rows = self.raw.fetch(self._mres)
for row in self._process_payload(raw_rows):
yield row
我尝试设置不同的operation_timeout,但是得到了相同的错误。我还检查了如何为存储桶或节点分配更多的RAM,但没有任何解决方案。我浏览了以下链接,但未找到任何实现细节。
https://docs.couchbase.com/python-sdk/current/client-settings.html
https://docs.couchbase.com/server/current/install/sizing-general.html
如何检索记录信息,将来记录的数量也会增加。