Skip to content

Commit d52feab

Browse files
committed
feat: improve match counting accuracy and efficiency
- Increase match query limit from 50 to 1000 in Settings.get_job_matches/1 - This provides more accurate match counts while maintaining performance - Match count now shows true available candidates up to 1000 - Existing truncation logic for display still respected based on subscription - Better reflects actual talent pool size for organizations
1 parent 7dbf45f commit d52feab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/algora/settings/settings.ex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,10 @@ defmodule Algora.Settings do
108108
load_matches(matches)
109109

110110
_ ->
111+
# Use a larger limit to get more accurate count (1000 instead of 50)
111112
[
112113
tech_stack: job.tech_stack,
113-
limit: Algora.Cloud.count_matches(job),
114+
limit: 1000,
114115
email_required: true,
115116
sort_by:
116117
case get_job_criteria(job) do

0 commit comments

Comments
 (0)