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

Search scan workflow #710

Draft
wants to merge 4 commits into
base: search-perf-spike-sample-tests
Choose a base branch
from

Conversation

anna-wawrzyniak
Copy link

@anna-wawrzyniak anna-wawrzyniak commented Jul 7, 2022

Verified with:

rm -rf ./build/WorkloadOutput/ 
./run-genny workload src/workloads/execution/searchScan.yml
echo "./build/WorkloadOutput/CedarMetrics/Search.IXScan.ftdc" && curator ftdc export csv --input=./build/WorkloadOutput/CedarMetrics/SearchScan.IXScan.ftdc | tail -n 1 | awk -F',' '{print ($7 / $4 / 1000000), "ms/op"}'
echo "./build/WorkloadOutput/CedarMetrics/Search.Search.ftdc" && curator ftdc export csv --input=./build/WorkloadOutput/CedarMetrics/SearchScan.Search.ftdc | tail -n 1 | awk -F',' '{print ($7 / $4 / 1000000), "ms/op"}'

Outputs:

./build/WorkloadOutput/CedarMetrics/Search.IXScan.ftdc
970.58 ms/op
./build/WorkloadOutput/CedarMetrics/Search.Search.ftdc
15145.3 ms/op

@anna-wawrzyniak anna-wawrzyniak changed the title Anna.awawrzyniak/searchscan Search scan workflow Jul 7, 2022
@anna-wawrzyniak anna-wawrzyniak changed the base branch from master to search-perf-spike-sample-tests July 7, 2022 18:34
OperationCommand:
aggregate: Collection0
pipeline: [
{$match: {searchableField: {"$lt": "b"}}},
Copy link
Contributor

Choose a reason for hiding this comment

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

Why $lt? That seems somewhat different than the fuzzy search above

Copy link
Author

Choose a reason for hiding this comment

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

the keys have at most length of 3, so the fuzzy search of "abc" with 2 edits, and prefix 1 will match everything that starts with "a". So { $lt : "b"} expresses exactly that.

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.

2 participants