-
Notifications
You must be signed in to change notification settings - Fork 33
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
wip: index new groups in OpenSearch #73
wip: index new groups in OpenSearch #73
Conversation
TLGINO
commented
May 6, 2023
•
edited by jrcastro2
Loading
edited by jrcastro2
- closes Improve index and group indexing #76
0ce285d
to
183ca82
Compare
3659141
to
fe68939
Compare
15c864e
to
079df6f
Compare
01c46d5
to
a525154
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to us! Just some very minor comments.
[ | ||
( | ||
user_agg[user_id].id, | ||
str(user_agg[user_id].id), | ||
user_agg[user_id].revision_id, | ||
) | ||
for user_id in user_ids | ||
], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor: this might end up sending very large lists/messages to a Celery task (which might be problematic depending on some message size limits on RabbitMQ). Do we have an estimate of how many user_ids
we might be getting?
In any case, maybe the solution is to loop over user_ids
and send things one-by-one.
a525154
to
0a8a9cc
Compare
0a8a9cc
to
3abfd2b
Compare
* fixed tests * use bulk indexing instead of iterative single indexing * closes inveniosoftware#76 Co-authored-by: Zacharias Zacharodimos <[email protected]>
f5ed189
to
5e012bd
Compare