kagkarlsson / db-scheduler

Persistent cluster-friendly scheduler for Java
Apache License 2.0
1.25k stars 191 forks source link

docs: Improve Examples #420

Closed cseewald closed 1 year ago

cseewald commented 1 year ago

I am currently incorporating DB-Scheduler into a project I am working on (10000 onetimetasks processed per hour in an Oracle database). Thanks for your awesome work!!

I decided to contribute something very modest back.

Changes

Reminders


cc @kagkarlsson

kagkarlsson commented 1 year ago

Excellent! Thank you for contributing! 🙏

kagkarlsson commented 1 year ago

Btw this PR might be of interest to you as well. It will introduce explicit LIMIT in the fetch-query for all databases.

https://github.com/kagkarlsson/db-scheduler/pull/371

cseewald commented 1 year ago

Btw this PR might be of interest to you as well. It will introduce explicit LIMIT in the fetch-query for all databases.

371

Yes, I will probably update when it it is part of a release: To make sure the existing db-scheduler version actually works with many 1000 rows in the task table I did a test with huge task data and many 1000 rows within a highly memory constraint JVM. The java.sql.Statement#setMaxRows already seems to do a good enough job to only fetch the limited number of rows from the db. But I guess the explicit LIMIT clause helps with query performance.

kagkarlsson commented 11 months ago

🎉 This issue has been resolved in v13.0.0 (Release Notes)