Hi,
I am using Python client to connect with weaviate. Connect timeout is 30 sec and Read timeout is set to 600 sec. Weaviate class has ~70,000 objects.
where_filter
is the query filter with AND operator based on 2 more class properties.
Here is the code snippet:
import weaviate
client = weaviate.Client(weaviate_url, **kwargs, timeout_config=(30, 600))
res = (
self.client.query
.get(class_name=self._class_name, properties=["video_id"])
.with_where(where_filter.dict())
.with_limit(1)
.do()
)
Here is the error:
File "weaviate_manager.py", line 359, in my_function
.do()
File "/home/airflow/.local/lib/python3.10/site-packages/weaviate/gql/get.py", line 1205, in do
return super().do()
File "/home/airflow/.local/lib/python3.10/site-packages/weaviate/gql/filter.py", line 76, in do
response = self._connection.post(path="/graphql", weaviate_object={"query": query})
File "/home/airflow/.local/lib/python3.10/site-packages/weaviate/connect/connection.py", line 427, in post
return self._session.post(
File "/home/airflow/.local/lib/python3.10/site-packages/requests/sessions.py", line 635, in post
return self.request("POST", url, data=data, json=json, **kwargs)
File "/home/airflow/.local/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/home/airflow/.local/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/home/airflow/.local/lib/python3.10/site-packages/requests/adapters.py", line 578, in send
raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='qwerty.c0.us-east1.gcp.weaviate.cloud', port=443): Read timed out. (read timeout=600)
Read timeout is quite high already. How do I fix this issue?