Files
scylladb/pgo/conf/si.yaml
Michał Chojnowski bea434f417 pgo: disable tablets for training with secondary index, lwt and counters
As of right now, materialized views (and consequently secondary
indexes), lwt and counters are unsupported or experimental with tablets.
Since by defaults tablets are enabled, training cases using those
features are currently broken.

The right thing to do here is to disable tablets in those cases.

Fixes https://github.com/scylladb/scylladb/issues/22638

Closes scylladb/scylladb#22661
2025-02-04 15:38:53 +02:00

75 lines
1.7 KiB
YAML

keyspace: sec_index
keyspace_definition: |
CREATE KEYSPACE IF NOT EXISTS sec_index WITH replication = {'class': 'NetworkTopologyStrategy', 'replication_factor': 3} AND TABLETS = {'enabled': false};
table: users
table_definition: |
CREATE TABLE IF NOT EXISTS users (
userid bigint,
initials int,
first_name text,
last_name text,
password text,
email text,
address text,
userdata blob,
last_access timeuuid,
PRIMARY KEY(userid)
);
extra_definitions:
- CREATE INDEX IF NOT EXISTS users_last_name_ind ON sec_index.users (last_name)
- CREATE INDEX IF NOT EXISTS users_first_name_ind ON sec_index.users (first_name)
- CREATE INDEX IF NOT EXISTS users_initials_ind ON sec_index.users (initials)
columnspec:
- name: userid
population: exp(1..10000000)
- name: initials
size: fixed(2)
population: gaussian(1..20000)
- name: first_name
size: fixed(5)
- name: last_name
size: fixed(5)
- name: password
size: fixed(80) # sha-512
- name: email
size: uniform(16..50)
- name: address
size: uniform(16..50)
- name: userdata
size: fixed(10240)
insert:
partitions: fixed(1)
batchtype: UNLOGGED
queries:
si_read1:
cql: select * from sec_index.users where userid = ?
fields: samerow
si_read2:
cql: select * from sec_index.users where first_name = ?
fields: samerow
si_read3:
cql: select * from sec_index.users where last_name = ?
fields: samerow
si_read4:
cql: select * from sec_index.users where first_name = ? and last_name = ? ALLOW FILTERING
fields: samerow
si_read5:
cql: select userid, initials, first_name, last_name from sec_index.users where initials = ?
fields: samerow