Possibilities to improve performance on query?

I have a Python application with FastAPI that performs 3 actions when the endpoint is called: querying the structure that returns vertices and edges (21 itens in total), removing edges and registering/updating vertices and edges. For the query process to return the values, it takes a long time to process and the average is 1.4 seconds. Before, I separated this query that I will leave attached and sent it in threads, but it still took a little longer. Im also using the cluster reader url and both aplication and database are on the same region and VPC. Does anyone have any ideas on how I can improve this? I’m running out of ideas at the momment.
IMG_6908.jpg
IMG_6903.jpg
IMG_6905.jpg
IMG_6904.jpg
Was this page helpful?