mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
more workload updates
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
package io.nosqlbench.adapter.mongodb;
|
package io.nosqlbench.adapter.mongodb;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2022 nosqlbench
|
* Copyright (c) 2023 nosqlbench
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -18,7 +18,6 @@ package io.nosqlbench.adapter.mongodb;
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import com.mongodb.client.MongoCursor;
|
|
||||||
import org.bson.Document;
|
import org.bson.Document;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ scenarios:
|
|||||||
drop: run driver=mongodb tags==block:drop-entire-collection threads==1 cycles==UNDEF database=baselines
|
drop: run driver=mongodb tags==block:drop-entire-collection threads==1 cycles==UNDEF database=baselines
|
||||||
search_and_index: >-
|
search_and_index: >-
|
||||||
run driver=mongodb alias=search_and_index tags='block:main-read' labels='target:mongodbatlas'
|
run driver=mongodb alias=search_and_index tags='block:main-read' labels='target:mongodbatlas'
|
||||||
cycles=TEMPLATE(testsize) errors=counter,retry stride=100 striderate=7.50
|
cycles=TEMPLATE(testsize) errors=counter,retry,warn stride=100 striderate=7.50
|
||||||
read_ratio=1 threads=500 database=baselines
|
read_ratio=1 threads=500 database=baselines
|
||||||
|
|
||||||
params:
|
params:
|
||||||
@@ -136,7 +136,7 @@ blocks:
|
|||||||
{
|
{
|
||||||
"aggregate": "TEMPLATE(collection,keyvalue)",
|
"aggregate": "TEMPLATE(collection,keyvalue)",
|
||||||
"cursor" : {
|
"cursor" : {
|
||||||
"batchSize": 100
|
"batchSize": TEMPLATE(top_k,100)
|
||||||
},
|
},
|
||||||
"pipeline": [
|
"pipeline": [
|
||||||
{
|
{
|
||||||
@@ -144,7 +144,7 @@ blocks:
|
|||||||
"index": "kv_value_vector_search_idx",
|
"index": "kv_value_vector_search_idx",
|
||||||
"path": "value",
|
"path": "value",
|
||||||
"queryVector": {test_floatlist},
|
"queryVector": {test_floatlist},
|
||||||
"numCandidates": TEMPLATE(num_candidates,1000),
|
"numCandidates": TEMPLATE(num_candidates,100),
|
||||||
"limit": TEMPLATE(top_k,100)
|
"limit": TEMPLATE(top_k,100)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user