Rename PKLookupTask to BatchPKLookup (#555) - #604
Conversation
PKLookupTask looks up N primary keys per task; the name didn't convey that it's the batch variant (vs a single-PK lookup). Rename the class to BatchPKLookup and update its call site in LocalTaskSource and the javac classpaths in compile.sh and responseTimeTests.py. The reported category stays 'PKLookup' so nightly-chart history is unaffected, and the historical annotations in notation.py are left as-is (they describe past events under the old name).
|
Are there any objections to its merger? I am ready to resolve them, just let me know. Thanks |
|
Thank you @serhiy-bzhezytskyy! +1 to rename the other two cases as long as they are also batch-optimized? |
mikemccand
left a comment
There was a problem hiding this comment.
Looks great, thank you @serhiy-bzhezytskyy! I'll merge shortly.
|
Thanks for merging! On renaming the other two — I checked, and they don't meet the condition, so I'd leave their names alone:
Neither has an If you'd like them batched too, that's a small separate change — sort the ids in each, then rename. Worth noting it would change what those two tasks measure, so their numbers would shift and the history before/after wouldn't be comparable. I can put that up as its own PR if you think the parity is worth the discontinuity. |
Renames
PKLookupTask→BatchPKLookupper #555, since it looks up N primary keys per task (the batch variant).LocalTaskSource, and thejavacclasspaths incompile.shandresponseTimeTests.py."PKLookup"so nightly-chart history is unaffected, and left the historical annotations innotation.pyas-is (they describe past events under the old name).benchUtil.pymatches on the emittedTASK: PK…line and thePKLookupcategory, both unchanged, so it needs no changes.Verified:
src/main/perf/*.javacompiles against a built Lucene 11.I kept the sibling classes (
PointsPKLookupTask,PKLookupWithTermStateTask) as-is; happy to rename those too for family consistency if you'd like.