Skip to content

Conversation

vibbix
Copy link

@vibbix vibbix commented Apr 26, 2025

This PR creates a new "enhanced" bulk loader for getting jobs and triggers. It also allows preexisting methods to optionally opt-in to this reducing the number of round trips needed for loading a large selection of jobs and triggers.

Changes

  • extended test suite and added MySQL
  • Added ability to get multiple JobDetails via a new method List<JobDetail> getJobDetails(GroupMatcher<JobKey> matcher)
  • Created a delegate method called loadExtendedTriggerPropertiesFromResultSet
  • Created a new method called getTriggersByJobAndTriggerGroup that allows batch searching for triggers with Job And Group matchers
  • added a useEnhancedStatements property for JDBC job store

Checklist

  • tested locally
  • updated the docs
  • added appropriate test
  • signed-off on the DCO referenced in the CONTRIBUTING link below via git commit -s on my commits, and submit this code under terms of the Apache 2.0 license and assign copyright to the Quartz project owners
    (If you're not using command-line, you can use a browser extension )

In submitting this contribution, I agree to the terms of contributing as referred to here:
https://github.com/quartz-scheduler/contributing/blob/main/CONTRIBUTING.md

Mark Beznos and others added 11 commits April 26, 2025 19:19
 - Finalized method on all scheduler Impls

Signed-off-by: Mark Beznos <[email protected]>
- Started work on bulk loader for triggers

Signed-off-by: Mark Beznos <[email protected]>
Signed-off-by: Mark Beznos <[email protected]>
 - added `selectTriggersForCalendarV2` in `DriverDelegate`
 - added `useEnhancedStatements` in `JobStoreSupport`
 - Updated `containsColumnNames`
 - Extended tests

Signed-off-by: Mark Beznos <[email protected]>
Signed-off-by: Mark Beznos <[email protected]>
 Next: add tests, finish

Signed-off-by: Mark Beznos <[email protected]>
Signed-off-by: Mark Beznos <[email protected]>
 - Fixed some config issues
 - removed un-neccesary column prefix

Signed-off-by: Mark Beznos <[email protected]>
@vibbix vibbix force-pushed the feature/bulk-loaders branch from 388e544 to 8904229 Compare April 26, 2025 23:19
Copy link
Contributor

@melloware melloware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent improvement

@VictorML11
Copy link

VictorML11 commented Apr 30, 2025

Excellent! I was actually searching for this ^^

My only suggestion is to avoid using "*" imports

@jhouserizer jhouserizer added is:feature New feature needs:review Needs review / investigation labels Jul 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is:feature New feature needs:review Needs review / investigation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants