Decrease query delay time in ML jobs

Hi, I get data from a database using logstash every 5 minutes. my bucket span is 15 minutes, and, because I was missing documents in the datafeed of the job, my query delay is 23 minutes.

What would you recomend to decrease the query delay?

will it help if I change to 1 minute the schedule of the logstash pipeline?

That'd likely help, yes.

Thanks @warkolm! Do you have another recommendation to decrease the query delay?