Commit 65a8733f authored by Yadd's avatar Yadd

Add MySQLJSON in perf test

parent e36cf60e
......@@ -59,6 +59,7 @@ my @legend = (
'Apache::Session::Browseable::LDAP' => 'LDAP',
'Apache::Session::MySQL (no lock)' => 'BMySQL',
'Apache::Session::Browseable::MySQL' => 'BiMySQL',
'Apache::Session::Browseable::MySQLJSON' => 'MySQLJSON',
'Apache::Session::Postgres (logged table)' => 'Postgres',
'Apache::Session::Postgres' => 'UPostgres',
'Apache::Session::Browseable::Postgres' => 'BPostgres',
......@@ -125,6 +126,18 @@ my $tests = {
'CREATE INDEX _u1 ON sessions (_utime) USING BTREE',
],
},
MySQLJSON => {
globalStorage => 'Apache::Session::Browseable::MySQLJSON',
globalStorageOptions => {
DataSource => 'dbi:mysql:host=127.0.0.1;database=sessions',
UserName => 'sso',
Password => 'sso',
},
pg => [
'DROP TABLE IF EXISTS sessions',
'CREATE TABLE sessions (id varchar(64) not null primary key,a_session json,as_wt varchar(32) AS (a_session->"$._whatToTrace") VIRTUAL,as_sk varchar(12) AS (a_session->"$._session_kind") VIRTUAL,as_ut bigint AS (a_session->"$._utime") VIRTUAL,as_ip varchar(64) AS (a_session->"$.ipAddr") VIRTUAL,KEY as_wt (as_wt),KEY as_sk (as_sk),KEY as_ut (as_ut),KEY as_ip (as_ip)) ENGINE=InnoDB',
],
},
Postgres => {
globalStorage => 'Apache::Session::Browseable::Postgres',
globalStorageOptions => {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment