Skip to main content

find_fast_track_candidates

Function find_fast_track_candidates 

Source
pub async fn find_fast_track_candidates(
    conn: &mut PgConnection,
    people: &[FastTrackLookup],
) -> ModelResult<HashMap<String, FastTrackCandidate>>
Expand description

find_fast_track_candidate for a whole roster in one query, keyed by sisu_person_id.

Same rules, and the same silence about an address more than one account holds. Deliberately without the row lock: this is the cheap pass that says which few people are worth a transaction, and each of those is read again under find_fast_track_candidate’s lock before anything is written.