Hi,
after writing a lot of triples to the data base, I start the db optimization with the
“endpoint/admin/databases/mydatabase/optimize command - see python code at the end.
The optimization takes very long and I get an idle timeout from my proxy.
Is there a method to start the optimization asynchronously and poll the status later?
Info: I do not have admin rights.
Thanks for helping here,
Thomas
Python code:
timeout_seconds = 180
print('starting to optimize database ... might take a while')
try:
response = self.session.put(
self.conn_details\['endpoint'\] + "/admin/databases/" + self.stardog_database + "/optimize",
auth=(self.conn_details\["username"\], self.conn_details\["password"\]),
timeout=timeout_seconds,
)
print('Databse optimization finished', response.content, response.status_code, sep=", ")
except requests.Timeout:
print(f'Databse optimization took more than {timeout_seconds}s.