blob: b153bbd7a7e344e0189328f8cddd92a7e314fb91 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you under the Apache License, Version 2.0 (the
~ "License"); you may not use this file except in compliance
~ with the License. You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<datamodel name="model_1">
<datamapping>
<column>
<!-- This column type defines what will generally happen to VARCHAR fields unless they are explicitly defined or overridden elsewhere -->
<type>VARCHAR</type>
<dataSequence>RANDOM</dataSequence>
<length>15</length>
<name>GENERAL_VARCHAR</name>
</column>
</datamapping>
<scenarios>
<scenario tableName="PHERF.EVT_GEN2" name="EVT_GEN2">
<loadProfile>
<batchSize>1</batchSize>
<numOperations>1000</numOperations>
<!-- Case 1 : where some operations have zero weight -->
<tenantDistribution id="tg1" weight="10" numTenants="10"></tenantDistribution>
<tenantDistribution id="tg2" weight="10" numTenants="10"></tenantDistribution>
<tenantDistribution id="tg3" weight="80" numTenants="10"></tenantDistribution>
<opDistribution id="upsertOp" weight="40"></opDistribution>
<opDistribution id="queryOp1" weight="10"></opDistribution>
<opDistribution id="queryOp2" weight="10"></opDistribution>
<opDistribution id="queryOp3" weight="0"></opDistribution>
<opDistribution id="queryOp4" weight="0"></opDistribution>
<opDistribution id="queryOp5" weight="0"></opDistribution>
<opDistribution id="queryOp6" weight="0"></opDistribution>
<opDistribution id="queryOp7" weight="0"></opDistribution>
<opDistribution id="queryOp8" weight="0"></opDistribution>
<opDistribution id="idleOp" weight="10"></opDistribution>
<opDistribution id="udfOp" weight="10"></opDistribution>
</loadProfile>
<upserts>
<upsert id="upsertOp">
<column>
<type>CHAR</type>
<name>COLUMN1</name>
</column>
</upsert>
</upserts>
<querySet>
<query id="queryOp1" statement="select count(*) from PHERF.Z11"/>
<query id="queryOp2" statement="select sum(SOME_INT) from PHERF.Z11"/>
<query id="queryOp3" statement="select sum(SOME_INT) +3 from PHERF.Z11"/>
<query id="queryOp4" statement="select sum(SOME_INT) +4 from PHERF.Z11"/>
<query id="queryOp5" statement="select sum(SOME_INT) +5 from PHERF.Z11"/>
<query id="queryOp6" statement="select sum(SOME_INT) +6 from PHERF.Z11"/>
<query id="queryOp7" statement="select sum(SOME_INT) +7 from PHERF.Z11"/>
<query id="queryOp8" statement="select sum(SOME_INT) +8 from PHERF.Z11"/>
</querySet>
<idleTimes>
<idleTime id="idleOp" idleTime="50"></idleTime>
</idleTimes>
<udfs>
<udf id="udfOp" >
<clazzName>org.apache.phoenix.pherf.ConfigurationParserTest.TestUDF</clazzName>
<args>Hello</args>
<args>World</args>
</udf>
</udfs>
</scenario>
</scenarios>
</datamodel>