def _pre_create_schema_scylla_bench(self): node = self.db_cluster.nodes[0] create_table_query = create_scylla_bench_table_query() # pylint: disable=no-member with self.db_cluster.cql_connection_patient(node) as session: session.execute(""" CREATE KEYSPACE IF NOT EXISTS scylla_bench WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 3} """) session.execute(create_table_query)
def pre_create_large_partitions_schema(self, compaction_strategy=CompactionStrategy.SIZE_TIERED.value): node = self.db_cluster.nodes[0] create_table_query = create_scylla_bench_table_query(compaction_strategy=compaction_strategy) with self.cql_connection_patient(node) as session: # pylint: disable=no-member session.execute(""" CREATE KEYSPACE IF NOT EXISTS scylla_bench WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 3} """) session.execute(create_table_query)