Having a hard time optimising

How close is the managed database to your instance? Are they in the same network?