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

Changes to support the demo #60

Merged
merged 6 commits into from
Dec 10, 2024
Merged

Changes to support the demo #60

merged 6 commits into from
Dec 10, 2024

Conversation

jzonthemtn
Copy link
Collaborator

No description provided.

@@ -276,6 +276,7 @@ public void indexClickthroughRates(final Map<String, Set<ClickthroughRate>> clic
jsonMap.put("clicks", clickthroughRate.getClicks());
jsonMap.put("events", clickthroughRate.getEvents());
jsonMap.put("ctr", clickthroughRate.getClickthroughRate());
jsonMap.put("object_id", clickthroughRate.getObjectId());
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The object_id was not being indexed for a clickthrough rate.


request.add(indexRequest);

}

}

client.bulk(request).get();
client.bulk(request, new ActionListener<>() {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

To avoid a blocking thread.

@@ -137,7 +135,10 @@ public String sample() throws Exception {
// This may require generating more random numbers than what was requested
// because removing duplicate user queries will require randomly picking more queries.
int count = 1;
while(querySet.size() < parameters.getQuerySetSize() && count < userQueries.size()) {

// TODO: How to short-circuit this such that if the same query gets picked over and over, the loop will never end.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The issue of short-circuiting the PPTSS sampling for when the same user query gets picked over and over and over...

@jzonthemtn jzonthemtn merged commit 399efbb into main Dec 10, 2024
18 checks passed
@jzonthemtn jzonthemtn deleted the demo-changes branch December 10, 2024 18:14
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.

1 participant