Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
milvus
milvus
提交
02d935eb
M
milvus
项目概览
milvus
/
milvus
11 个月 前同步成功
通知
260
Star
22476
Fork
2472
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
milvus
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
02d935eb
编写于
9月 27, 2020
作者:
Z
zhenshan.cao
提交者:
yefu.chen
9月 27, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix sdk bug
Signed-off-by:
N
zhenshan.cao
<
zhenshan.cao@zilliz.com
>
上级
0d2780a2
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
175 addition
and
133 deletion
+175
-133
reader/read_node/query_node.go
reader/read_node/query_node.go
+36
-43
reader/read_node/segment.go
reader/read_node/segment.go
+2
-5
reader/read_node/util_functions.go
reader/read_node/util_functions.go
+0
-56
sdk/examples/simple/insert.cpp
sdk/examples/simple/insert.cpp
+41
-5
sdk/examples/simple/search.cpp
sdk/examples/simple/search.cpp
+96
-24
未找到文件。
reader/read_node/query_node.go
浏览文件 @
02d935eb
...
...
@@ -17,9 +17,6 @@ import (
"encoding/json"
"fmt"
"github.com/czs007/suvlim/conf"
msgPb
"github.com/czs007/suvlim/pkg/master/grpc/message"
"github.com/czs007/suvlim/pkg/master/kv"
"github.com/czs007/suvlim/reader/message_client"
"github.com/stretchr/testify/assert"
"log"
"sort"
...
...
@@ -27,6 +24,9 @@ import (
"sync/atomic"
"time"
msgPb
"github.com/czs007/suvlim/pkg/master/grpc/message"
"github.com/czs007/suvlim/pkg/master/kv"
"github.com/czs007/suvlim/reader/message_client"
//"github.com/stretchr/testify/assert"
)
...
...
@@ -69,21 +69,8 @@ type QueryInfo struct {
type
MsgCounter
struct
{
InsertCounter
int64
InsertTime
time
.
Time
DeleteCounter
int64
DeleteTime
time
.
Time
SearchCounter
int64
SearchTime
time
.
Time
}
type
InsertLog
struct
{
MsgLength
int
DurationInMilliseconds
int64
InsertTime
time
.
Time
NumSince
int64
Speed
float64
}
type
QueryNode
struct
{
...
...
@@ -99,7 +86,6 @@ type QueryNode struct {
insertData
InsertData
kvBase
*
kv
.
EtcdKVBase
msgCounter
*
MsgCounter
InsertLogs
[]
InsertLog
}
func
NewQueryNode
(
queryNodeId
uint64
,
timeSync
uint64
)
*
QueryNode
{
...
...
@@ -109,7 +95,7 @@ func NewQueryNode(queryNodeId uint64, timeSync uint64) *QueryNode {
ReadTimeSyncMin
:
timeSync
,
ReadTimeSyncMax
:
timeSync
,
WriteTimeSync
:
timeSync
,
ServiceTimeSync
:
timeSync
,
ServiceTimeSync
:
timeSync
,
TSOTimeSync
:
timeSync
,
}
...
...
@@ -149,7 +135,7 @@ func CreateQueryNode(queryNodeId uint64, timeSync uint64, mc *message_client.Mes
ReadTimeSyncMin
:
timeSync
,
ReadTimeSyncMax
:
timeSync
,
WriteTimeSync
:
timeSync
,
ServiceTimeSync
:
timeSync
,
ServiceTimeSync
:
timeSync
,
TSOTimeSync
:
timeSync
,
}
...
...
@@ -176,7 +162,6 @@ func CreateQueryNode(queryNodeId uint64, timeSync uint64, mc *message_client.Mes
queryNodeTimeSync
:
queryNodeTimeSync
,
buffer
:
buffer
,
msgCounter
:
&
msgCounter
,
InsertLogs
:
make
([]
InsertLog
,
0
),
}
}
...
...
@@ -261,11 +246,13 @@ func (node *QueryNode) InitQueryNodeCollection() {
func
(
node
*
QueryNode
)
RunInsertDelete
(
wg
*
sync
.
WaitGroup
)
{
const
Debug
=
true
const
CountInsertMsgBaseline
=
1000
*
1000
var
BaselineCounter
int64
=
0
node
.
msgCounter
.
InsertTime
=
time
.
Now
()
const
CountMsgNum
=
1000
*
1000
if
Debug
{
var
printFlag
=
true
var
startTime
=
true
var
start
time
.
Time
for
{
var
msgLen
=
node
.
PrepareBatchMsg
()
var
timeRange
=
TimeRange
{
node
.
messageClient
.
TimeSyncStart
(),
node
.
messageClient
.
TimeSyncEnd
()}
...
...
@@ -277,9 +264,10 @@ func (node *QueryNode) RunInsertDelete(wg *sync.WaitGroup) {
continue
}
if
node
.
msgCounter
.
InsertCounter
/
CountInsertMsgBaseline
==
BaselineCounter
{
node
.
WriteQueryLog
()
BaselineCounter
++
if
startTime
{
fmt
.
Println
(
"============> Start Test <============"
)
startTime
=
false
start
=
time
.
Now
()
}
node
.
QueryNodeDataInit
()
...
...
@@ -291,6 +279,13 @@ func (node *QueryNode) RunInsertDelete(wg *sync.WaitGroup) {
node
.
DoInsertAndDelete
()
//fmt.Println("DoInsertAndDelete Done")
node
.
queryNodeTimeSync
.
UpdateSearchTimeSync
(
timeRange
)
// Test insert time
if
printFlag
&&
node
.
msgCounter
.
InsertCounter
>=
CountMsgNum
{
printFlag
=
false
timeSince
:=
time
.
Since
(
start
)
fmt
.
Println
(
"============> Do"
,
node
.
msgCounter
.
InsertCounter
,
"Insert in"
,
timeSince
,
"<============"
)
}
}
}
...
...
@@ -339,14 +334,14 @@ func (node *QueryNode) RunSearch(wg *sync.WaitGroup) {
node
.
messageClient
.
SearchMsg
=
append
(
node
.
messageClient
.
SearchMsg
,
msg
)
fmt
.
Println
(
"Do Search..."
)
//for {
//if node.messageClient.SearchMsg[0].Timestamp < node.queryNodeTimeSync.ServiceTimeSync {
var
status
=
node
.
Search
(
node
.
messageClient
.
SearchMsg
)
if
status
.
ErrorCode
!=
0
{
fmt
.
Println
(
"Search Failed"
)
node
.
PublishFailedSearchResult
()
}
//break
//}
//if node.messageClient.SearchMsg[0].Timestamp < node.queryNodeTimeSync.ServiceTimeSync {
var
status
=
node
.
Search
(
node
.
messageClient
.
SearchMsg
)
if
status
.
ErrorCode
!=
0
{
fmt
.
Println
(
"Search Failed"
)
node
.
PublishFailedSearchResult
()
}
//break
//}
//}
default
:
}
...
...
@@ -490,9 +485,9 @@ func (node *QueryNode) PreInsertAndDelete() msgPb.Status {
func
(
node
*
QueryNode
)
DoInsertAndDelete
()
msgPb
.
Status
{
var
wg
sync
.
WaitGroup
// Do insert
for
segmentID
:=
range
node
.
insertData
.
insertRecords
{
for
segmentID
,
records
:=
range
node
.
insertData
.
insertRecords
{
wg
.
Add
(
1
)
go
node
.
DoInsert
(
segmentID
,
&
wg
)
go
node
.
DoInsert
(
segmentID
,
&
records
,
&
wg
)
}
// Do delete
...
...
@@ -510,7 +505,7 @@ func (node *QueryNode) DoInsertAndDelete() msgPb.Status {
return
msgPb
.
Status
{
ErrorCode
:
msgPb
.
ErrorCode_SUCCESS
}
}
func
(
node
*
QueryNode
)
DoInsert
(
segmentID
int64
,
wg
*
sync
.
WaitGroup
)
msgPb
.
Status
{
func
(
node
*
QueryNode
)
DoInsert
(
segmentID
int64
,
records
*
[][]
byte
,
wg
*
sync
.
WaitGroup
)
msgPb
.
Status
{
fmt
.
Println
(
"Doing insert..., len = "
,
len
(
node
.
insertData
.
insertIDs
[
segmentID
]))
var
targetSegment
,
err
=
node
.
GetSegmentBySegmentID
(
segmentID
)
if
err
!=
nil
{
...
...
@@ -520,12 +515,10 @@ func (node *QueryNode) DoInsert(segmentID int64, wg *sync.WaitGroup) msgPb.Statu
ids
:=
node
.
insertData
.
insertIDs
[
segmentID
]
timestamps
:=
node
.
insertData
.
insertTimestamps
[
segmentID
]
records
:=
node
.
insertData
.
insertRecords
[
segmentID
]
offsets
:=
node
.
insertData
.
insertOffset
[
segmentID
]
node
.
QueryLog
(
len
(
ids
))
err
=
targetSegment
.
SegmentInsert
(
offsets
,
&
ids
,
&
timestamps
,
&
records
)
node
.
msgCounter
.
InsertCounter
+=
int64
(
len
(
ids
))
err
=
targetSegment
.
SegmentInsert
(
offsets
,
&
ids
,
&
timestamps
,
records
)
if
err
!=
nil
{
fmt
.
Println
(
err
.
Error
())
return
msgPb
.
Status
{
ErrorCode
:
1
}
...
...
@@ -592,7 +585,7 @@ func (node *QueryNode) Search(searchMessages []*msgPb.SearchMsg) msgPb.Status {
// Here, we manually make searchTimestamp's logic time minus `conf.Config.Timesync.Interval` milliseconds.
// Which means `searchTimestamp.logicTime = searchTimestamp.logicTime - conf.Config.Timesync.Interval`.
var
logicTimestamp
=
searchTimestamp
<<
46
>>
46
searchTimestamp
=
(
searchTimestamp
>>
18
-
uint64
(
conf
.
Config
.
Timesync
.
Interval
+
600
))
<<
18
+
logicTimestamp
searchTimestamp
=
(
searchTimestamp
>>
18
-
uint64
(
conf
.
Config
.
Timesync
.
Interval
+
600
))
<<
18
+
logicTimestamp
var
vector
=
msg
.
Records
// We now only the first Json is valid.
...
...
@@ -601,7 +594,7 @@ func (node *QueryNode) Search(searchMessages []*msgPb.SearchMsg) msgPb.Status {
// 1. Timestamp check
// TODO: return or wait? Or adding graceful time
if
searchTimestamp
>
node
.
queryNodeTimeSync
.
ServiceTimeSync
{
fmt
.
Println
(
"Invalid query time, timestamp = "
,
searchTimestamp
>>
18
,
", SearchTimeSync = "
,
node
.
queryNodeTimeSync
.
ServiceTimeSync
>>
18
)
fmt
.
Println
(
"Invalid query time, timestamp = "
,
searchTimestamp
>>
18
,
", SearchTimeSync = "
,
node
.
queryNodeTimeSync
.
ServiceTimeSync
>>
18
)
return
msgPb
.
Status
{
ErrorCode
:
1
}
}
...
...
reader/read_node/segment.go
浏览文件 @
02d935eb
...
...
@@ -16,7 +16,6 @@ import (
"fmt"
"github.com/czs007/suvlim/errors"
msgPb
"github.com/czs007/suvlim/pkg/master/grpc/message"
"github.com/stretchr/testify/assert"
"strconv"
"unsafe"
)
...
...
@@ -144,13 +143,11 @@ func (s *Segment) SegmentInsert(offset int64, entityIDs *[]int64, timestamps *[]
var
numOfRow
=
len
(
*
entityIDs
)
var
sizeofPerRow
=
len
((
*
records
)[
0
])
assert
.
Equal
(
nil
,
numOfRow
,
len
(
*
records
))
var
rawData
=
make
([]
byte
,
numOfRow
*
sizeofPerRow
)
var
rawData
=
make
([]
byte
,
numOfRow
*
sizeofPerRow
)
var
copyOffset
=
0
for
i
:=
0
;
i
<
len
(
*
records
);
i
++
{
copy
(
rawData
[
copyOffset
:
],
(
*
records
)[
i
])
copyOffset
+=
sizeofPerRow
copyOffset
+=
len
((
*
records
)[
i
])
}
var
cOffset
=
C
.
long
(
offset
)
...
...
reader/read_node/util_functions.go
浏览文件 @
02d935eb
package
reader
import
(
"encoding/json"
"errors"
"fmt"
log
"github.com/apache/pulsar/pulsar-client-go/logutil"
"os"
"strconv"
"time"
)
// Function `GetSegmentByEntityId` should return entityIDs, timestamps and segmentIDs
...
...
@@ -73,54 +68,3 @@ func (c *Collection) GetPartitionByName(partitionName string) (partition *Partit
return
nil
// TODO: remove from c.Partitions
}
func
(
node
*
QueryNode
)
QueryLog
(
length
int
)
{
node
.
msgCounter
.
InsertCounter
+=
int64
(
length
)
timeNow
:=
time
.
Now
()
duration
:=
timeNow
.
Sub
(
node
.
msgCounter
.
InsertTime
)
speed
:=
float64
(
length
)
/
duration
.
Seconds
()
insertLog
:=
InsertLog
{
MsgLength
:
length
,
DurationInMilliseconds
:
duration
.
Milliseconds
(),
InsertTime
:
timeNow
,
NumSince
:
node
.
msgCounter
.
InsertCounter
,
Speed
:
speed
,
}
node
.
InsertLogs
=
append
(
node
.
InsertLogs
,
insertLog
)
node
.
msgCounter
.
InsertTime
=
timeNow
}
func
(
node
*
QueryNode
)
WriteQueryLog
()
{
f
,
err
:=
os
.
OpenFile
(
"/tmp/query_node.txt"
,
os
.
O_APPEND
|
os
.
O_CREATE
|
os
.
O_WRONLY
,
0644
)
if
err
!=
nil
{
log
.
Fatal
(
err
)
}
// write logs
for
_
,
insertLog
:=
range
node
.
InsertLogs
{
insertLogJson
,
err
:=
json
.
Marshal
(
&
insertLog
)
if
err
!=
nil
{
log
.
Fatal
(
err
)
}
writeString
:=
string
(
insertLogJson
)
+
"
\n
"
fmt
.
Println
(
writeString
)
_
,
err2
:=
f
.
WriteString
(
writeString
)
if
err2
!=
nil
{
log
.
Fatal
(
err2
)
}
}
// reset InsertLogs buffer
node
.
InsertLogs
=
make
([]
InsertLog
,
0
)
err
=
f
.
Close
()
if
err
!=
nil
{
log
.
Fatal
(
err
)
}
fmt
.
Println
(
"write log done"
)
}
sdk/examples/simple/insert.cpp
浏览文件 @
02d935eb
...
...
@@ -59,11 +59,32 @@ const milvus::FieldValue GetData(int count) {
value_map
.
int32_value
[
"INT32"
]
=
int32_data
;
value_map
.
vector_value
[
"VECTOR"
]
=
vector_data
;
value_map
.
row_num
=
N
;
value_map
.
row_num
=
count
;
return
value_map
;
}
bool
checkSchema
(){
bool
check_field
(
milvus
::
FieldPtr
left
,
milvus
::
FieldPtr
right
){
if
(
left
->
field_name
!=
right
->
field_name
){
std
::
cout
<<
"filed_name not match! want "
<<
left
->
field_name
<<
" but get "
<<
right
->
field_name
<<
std
::
endl
;
return
false
;
}
if
(
left
->
field_type
!=
right
->
field_type
){
std
::
cout
<<
"filed_type not match! want "
<<
int
(
left
->
field_type
)
<<
" but get "
<<
int
(
right
->
field_type
)
<<
std
::
endl
;
return
false
;
}
if
(
left
->
dim
!=
right
->
dim
){
std
::
cout
<<
"dim not match! want "
<<
left
->
dim
<<
" but get "
<<
right
->
dim
<<
std
::
endl
;
return
false
;
}
return
true
;
}
bool
check_schema
(
const
milvus
::
Mapping
&
map
){
// Get Collection info
bool
ret
=
false
;
...
...
@@ -80,11 +101,16 @@ bool checkSchema(){
std
::
vector
<
milvus
::
FieldPtr
>
fields
{
field_ptr1
,
field_ptr2
};
milvus
::
Mapping
map
;
//client.GetCollectionInfo(collection_name, map);
auto
size_
=
map
.
fields
.
size
();
for
(
int
i
=
0
;
i
!=
size_
;
++
i
){
auto
ret
=
check_field
(
fields
[
i
],
map
.
fields
[
i
]);
if
(
!
ret
){
return
false
;
}
}
for
(
auto
&
f
:
map
.
fields
)
{
///
std::cout << f->field_name << ":" << int(f->field_type) << ":" << f->dim << "DIM" << std::endl;
std
::
cout
<<
f
->
field_name
<<
":"
<<
int
(
f
->
field_type
)
<<
":"
<<
f
->
dim
<<
"DIM"
<<
std
::
endl
;
}
return
true
;
...
...
@@ -105,12 +131,22 @@ main(int argc, char* argv[]) {
const
std
::
string
collection_name
=
parameters
.
collection_name_
;
auto
client
=
milvus
::
ConnectionImpl
();
milvus
::
ConnectParam
connect_param
;
connect_param
.
ip_address
=
parameters
.
address_
.
empty
()
?
"127.0.0.1"
:
parameters
.
address_
;
connect_param
.
port
=
parameters
.
port_
.
empty
()
?
"19530"
:
parameters
.
port_
;
client
.
Connect
(
connect_param
);
milvus
::
Mapping
map
;
client
.
GetCollectionInfo
(
collection_name
,
map
);
auto
check_ret
=
check_schema
(
map
);
if
(
!
check_ret
){
std
::
cout
<<
" Schema is not right!"
<<
std
::
endl
;
return
0
;
}
int
per_count
=
N
/
LOOP
;
int
failed_count
=
0
;
...
...
sdk/examples/simple/search.cpp
浏览文件 @
02d935eb
// Copyright (C) 2019-2020 Zilliz. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
...
...
@@ -23,27 +21,9 @@ const int TOP_K = 10;
const
int
LOOP
=
1000
;
const
int
DIM
=
128
;
int
main
(
int
argc
,
char
**
argv
)
{
TestParameters
parameters
=
milvus_sdk
::
Utils
::
ParseTestParameters
(
argc
,
argv
);
if
(
!
parameters
.
is_valid
){
return
0
;
}
if
(
parameters
.
collection_name_
.
empty
()){
std
::
cout
<<
"should specify collection name!"
<<
std
::
endl
;
milvus_sdk
::
Utils
::
PrintHelp
(
argc
,
argv
);
return
0
;
}
auto
client
=
milvus
::
ConnectionImpl
();
milvus
::
ConnectParam
connect_param
;
connect_param
.
ip_address
=
parameters
.
address_
.
empty
()
?
"127.0.0.1"
:
parameters
.
address_
;
connect_param
.
port
=
parameters
.
port_
.
empty
()
?
"19530"
:
parameters
.
port_
;
client
.
Connect
(
connect_param
);
std
::
vector
<
int64_t
>
ids_array
;
std
::
vector
<
std
::
string
>
partition_list
;
partition_list
.
emplace_back
(
"default"
);
const
milvus
::
VectorParam
get_vector_param
()
{
milvus
::
VectorParam
vectorParam
;
std
::
vector
<
milvus
::
VectorData
>
vector_records
;
...
...
@@ -54,7 +34,7 @@ int main(int argc , char**argv) {
for
(
int
j
=
0
;
j
<
1
;
++
j
)
{
milvus
::
VectorData
vectorData
;
std
::
vector
<
float
>
float_data
;
for
(
int
i
=
0
;
i
<
16
;
++
i
)
{
for
(
int
i
=
0
;
i
<
DIM
;
++
i
)
{
float_data
.
emplace_back
(
dis
(
eng
));
}
...
...
@@ -71,11 +51,103 @@ int main(int argc , char**argv) {
vectorParam
.
json_param
=
vector_param_json_string
;
vectorParam
.
vector_records
=
vector_records
;
return
vectorParam
;
}
bool
check_field
(
milvus
::
FieldPtr
left
,
milvus
::
FieldPtr
right
){
if
(
left
->
field_name
!=
right
->
field_name
){
std
::
cout
<<
"filed_name not match! want "
<<
left
->
field_name
<<
" but get "
<<
right
->
field_name
<<
std
::
endl
;
return
false
;
}
if
(
left
->
field_type
!=
right
->
field_type
){
std
::
cout
<<
"filed_type not match! want "
<<
int
(
left
->
field_type
)
<<
" but get "
<<
int
(
right
->
field_type
)
<<
std
::
endl
;
return
false
;
}
if
(
left
->
dim
!=
right
->
dim
){
std
::
cout
<<
"dim not match! want "
<<
left
->
dim
<<
" but get "
<<
right
->
dim
<<
std
::
endl
;
return
false
;
}
return
true
;
}
bool
check_schema
(
const
milvus
::
Mapping
&
map
){
// Get Collection info
bool
ret
=
false
;
milvus
::
FieldPtr
field_ptr1
=
std
::
make_shared
<
milvus
::
Field
>
();
milvus
::
FieldPtr
field_ptr2
=
std
::
make_shared
<
milvus
::
Field
>
();
field_ptr1
->
field_name
=
"age"
;
field_ptr1
->
field_type
=
milvus
::
DataType
::
INT32
;
field_ptr1
->
dim
=
1
;
field_ptr2
->
field_name
=
"field_vec"
;
field_ptr2
->
field_type
=
milvus
::
DataType
::
VECTOR_FLOAT
;
field_ptr2
->
dim
=
DIM
;
std
::
vector
<
milvus
::
FieldPtr
>
fields
{
field_ptr1
,
field_ptr2
};
auto
size_
=
map
.
fields
.
size
();
for
(
int
i
=
0
;
i
!=
size_
;
++
i
){
auto
ret
=
check_field
(
fields
[
i
],
map
.
fields
[
i
]);
if
(
!
ret
){
return
false
;
}
}
for
(
auto
&
f
:
map
.
fields
)
{
std
::
cout
<<
f
->
field_name
<<
":"
<<
int
(
f
->
field_type
)
<<
":"
<<
f
->
dim
<<
"DIM"
<<
std
::
endl
;
}
return
true
;
}
int
main
(
int
argc
,
char
**
argv
)
{
TestParameters
parameters
=
milvus_sdk
::
Utils
::
ParseTestParameters
(
argc
,
argv
);
if
(
!
parameters
.
is_valid
){
return
0
;
}
if
(
parameters
.
collection_name_
.
empty
()){
std
::
cout
<<
"should specify collection name!"
<<
std
::
endl
;
milvus_sdk
::
Utils
::
PrintHelp
(
argc
,
argv
);
return
0
;
}
const
std
::
string
collection_name
=
parameters
.
collection_name_
;
auto
client
=
milvus
::
ConnectionImpl
();
milvus
::
ConnectParam
connect_param
;
connect_param
.
ip_address
=
parameters
.
address_
.
empty
()
?
"127.0.0.1"
:
parameters
.
address_
;
connect_param
.
port
=
parameters
.
port_
.
empty
()
?
"19530"
:
parameters
.
port_
;
client
.
Connect
(
connect_param
);
milvus
::
Mapping
map
;
client
.
GetCollectionInfo
(
collection_name
,
map
);
auto
check_ret
=
check_schema
(
map
);
if
(
!
check_ret
){
std
::
cout
<<
" Schema is not right!"
<<
std
::
endl
;
return
0
;
}
std
::
vector
<
std
::
string
>
partition_list
;
partition_list
.
emplace_back
(
"default"
);
auto
vectorParam
=
get_vector_param
();
milvus
::
TopKQueryResult
result
;
milvus_sdk
::
TimeRecorder
test_search
(
"search"
);
for
(
int
k
=
0
;
k
<
LOOP
;
++
k
)
{
test_search
.
Start
();
auto
status
=
client
.
Search
(
"collection0"
,
partition_list
,
"dsl"
,
vectorParam
,
result
);
auto
status
=
client
.
Search
(
collection_name
,
partition_list
,
"dsl"
,
vectorParam
,
result
);
test_search
.
End
();
}
test_search
.
Print
(
LOOP
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录