Stitch Functions with slow db connection

The stitch functions is slow about 60 seconds or 90 seconds with timeout, anybody can help me?