init push
This commit is contained in:
@ -0,0 +1,17 @@
|
||||
connect conn_admin, $OBMYSQL_MS0,admin,$OBMYSQL_PWD,test,$OBMYSQL_PORT;
|
||||
connection conn_admin;
|
||||
alter system flush plan cache global;
|
||||
connection default;
|
||||
|
||||
// test multi query hit plan
|
||||
drop table if exists t1;
|
||||
create table t1(c1 int);
|
||||
begin;
|
||||
connection default;
|
||||
select * from t1 where c1 = 1;select * from t1 where c1 = 1;select * from t1 where c1 = 1;//
|
||||
commit;
|
||||
// expected hit_count 2
|
||||
select hit_count from oceanbase.gv$plan_cache_plan_stat where statement like "select * from t1 where c1 = ?;";
|
||||
hit_count
|
||||
2
|
||||
drop table t1;
|
||||
Binary file not shown.
Reference in New Issue
Block a user