Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SUP-19231 - email notification fix to handle more than 150 users when… #8764

Merged
merged 2 commits into from
Sep 11, 2019

Conversation

gotlieb
Copy link
Contributor

@gotlieb gotlieb commented Sep 11, 2019

… filerting with idIn due to sphinx limitations.

@MosheMaorKaltura

… filerting with idIn due to sphinx limitations.
$pager->pageIndex ++;
}
while ($pager->pageSize == count($userList->objects));

while (($pager->pageSize == count($categoryUserList->objects)) and ($pager->pageIndex <= $maxPagesToScan));
Copy link
Contributor

Choose a reason for hiding this comment

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

Better remove this check - ($pager->pageSize == count($categoryUserList->objects)

  1. Since you already check if response empty.
  2. It is possible that 1 categoryUser will be removed during the response.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok

$maxPagesToScan = 2;
$userPager = new KalturaFilterPager();
$userPager->pageSize = $pager->pageSize;
$maxPagesToScan = 7;
Copy link
Contributor

Choose a reason for hiding this comment

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

The former procedure tried to handle 1000 users, why block at 700

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed to 1050

@gotlieb gotlieb merged commit 8b45c09 into Orion-15.7.0 Sep 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants