VoltDB / voltdb-client-go

VoltDB Golang Client Library
MIT License
32 stars 19 forks source link

Client Affinity #54

Open gernest opened 6 years ago

gernest commented 6 years ago

Depends on #53

gernest commented 6 years ago

var rst = map[string]voltdbclient.procedure{
    "VOTES.insert":            {SinglePartition: true, ReadOnly: false, PartitionParameter: 0, PartitionParameterType: 6},
    "AREA_CODE_STATE.delete":  {SinglePartition: false, ReadOnly: false, PartitionParameter: -1, PartitionParameterType: -1},
    "CONTESTANTS.delete":      {SinglePartition: false, ReadOnly: false, PartitionParameter: -1, PartitionParameterType: -1},
    "CONTESTANTS.insert":      {SinglePartition: false, ReadOnly: false, PartitionParameter: -1, PartitionParameterType: -1},
    "Initialize":              {SinglePartition: false, ReadOnly: false, PartitionParameter: -1, PartitionParameterType: -1},
    "AREA_CODE_STATE.upsert":  {SinglePartition: false, ReadOnly: false, PartitionParameter: -1, PartitionParameterType: -1},
    "CONTESTANTS.upsert":      {SinglePartition: false, ReadOnly: false, PartitionParameter: -1, PartitionParameterType: -1},
    "GetStateHeatmap":         {SinglePartition: false, ReadOnly: true, PartitionParameter: -1, PartitionParameterType: -1},
    "Vote":                    {SinglePartition: true, ReadOnly: false, PartitionParameter: 0, PartitionParameterType: 6},
    "CONTESTANTS.update":      {SinglePartition: false, ReadOnly: false, PartitionParameter: -1, PartitionParameterType: -1},
    "ContestantWinningStates": {SinglePartition: false, ReadOnly: true, PartitionParameter: -1, PartitionParameterType: -1},
    "Results":                 {SinglePartition: false, ReadOnly: true, PartitionParameter: -1, PartitionParameterType: -1},
    "AREA_CODE_STATE.insert":  {SinglePartition: false, ReadOnly: false, PartitionParameter: -1, PartitionParameterType: -1},
    "AREA_CODE_STATE.update":  {SinglePartition: false, ReadOnly: false, PartitionParameter: -1, PartitionParameterType: -1},
}
gernest commented 6 years ago
TIMESTAMP      HOST_ID  HOSTNAME  SITE_ID  PARTITION_ID  PROCEDURE                       INVOCATIONS  TIMED_INVOCATIONS  MIN_EXECUTION_TIME  MAX_EXECUTION_TIME  AVG_EXECUTION_TIME  MIN_RESULT_SIZE  MAX_RESULT_SIZE  AVG_RESULT_SIZE  MIN_PARAMETER_SET_SIZE  MAX_PARAMETER_SET_SIZE  AVG_PARAMETER_SET_SIZE  ABORTS  FAILURES  TRANSACTIONAL 
-------------- -------- --------- -------- ------------- ------------------------------- ------------ ------------------ ------------------- ------------------- ------------------- ---------------- ---------------- ---------------- ----------------------- ----------------------- ----------------------- ------- --------- --------------
 1530009449115        0 mj               0             2 add_customer                               1                  1             1291353             1291353             1291353               47               47               47                      28                      28                      28       0         0              1
 1530009449115        0 mj               4         16383 org.voltdb.sysprocs.AdHoc_RO_MP            1                  1             6477318             6477318             6477318               84               84               84                    1124                    1124                    1124       0         0              1
 1530009449116        1 mj               2             2 add_customer                               1                  1             1412395             1412395             1412395               47               47               47                      28                      28                      28       0         0              1

(Returned 3 rows in 0.00s)