Skip to content

Conversation

@pbailie
Copy link
Contributor

@pbailie pbailie commented Aug 22, 2018

Students can have multiple entries in the auto feed -- one per course. But only one entry per student is allowed in the users table. Therefore, users data is deduplicated before upsert. This pull request improves on deduplication.

student_auto_feed/submitty_student_auto_feed.php

Refactor/Simplify/Improve deduplication code.  Perhaps we don't need a stable sort in this particular project.
Deduplication now relies on usort() instead of merge sort.  Should be faster.
@bmcutler bmcutler merged commit c832542 into master Aug 22, 2018
@bmcutler bmcutler deleted the auto_feed_update branch August 22, 2018 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants