-
Notifications
You must be signed in to change notification settings - Fork 103
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
Spike 5000 queries round deux #1039
Conversation
Nice test of recency as well!
describe 'recency scorer' do | ||
let(:the_case) { cases(:case_without_score) } | ||
|
||
test 'runs simple and tests eachDoc w/ a function' do |
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.
I'd love to get a bit more detail on how to pick a baseDate.. and if the baseDate could be "today" instead? @david-fisher
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.
base date of today is just fine. The one in the code was the date of the frozen in time index. You can use:
baseDate = Date.now()
Maybe done? |
Description
Demonstrate running 5000 queries in a background process, storing the results in a Snapshot.
Ideally, we run the 5000 queries, building the snapshot. We then make the front end interact as if it was a CSV Upload of data. If that works, great. If it still doesn't scale, then we have a seperate UI. And we figure out how to run not just A scorer, but lots of scorers, and store them..
number_of_rows
limit to reqeusting docsDown the road, when we want multiple scorers:
case_scores
andscorers
, right now when you change scorers, we don't track that.Motivation and Context
We need moar data! This replaces an earlier attempt, #976 that kept the AngularJS app as the runner for Javascript. It just didn't work... Headless app wasn't the right way to go.