Idle timout from proxy when starting the db optimize command

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.

Hi Thomas,

We are working closely with Henrik Dibowski at BD, who is the current platform owner for Stardog at Bosch. He suggested you can reach out to him to discuss your question - Henrik.Dibowski@de.bosch.com.

Hope this helps, let us know if you have any further questions.

Best,

Muneet Dohil
Senior Manager, Customer Success - EMEA

Thanks for this fast answer!