зеркало из https://github.com/Azure/YCSB.git
gh-97 Bug fixes in dynamodb plugin
I have fixed a bug in insert() and delete() methods.There are also some cosmetic changes to readme and properties files.
This commit is contained in:
Родитель
3827d9a303
Коммит
9fef32a19f
|
@ -1 +1 @@
|
|||
/elasticsearch/target/
|
||||
/elasticsearch/target/
|
||||
|
|
2
bin/ycsb
2
bin/ycsb
|
@ -40,7 +40,7 @@ DATABASES = {
|
|||
"nosqldb" : "com.yahoo.ycsb.db.NoSqlDbClient",
|
||||
"orientdb" : "com.yahoo.ycsb.db.OrientDBClient",
|
||||
"redis" : "com.yahoo.ycsb.db.RedisClient",
|
||||
"voldemort" : "com.yahoo.ycsb.db.VoldemortClient",
|
||||
"voldemort" : "com.yahoo.ycsb.db.VoldemortClient",
|
||||
}
|
||||
|
||||
OPTIONS = {
|
||||
|
|
|
@ -3,10 +3,13 @@ CONFIGURE
|
|||
YCSB_HOME - YCSB home directory
|
||||
DYNAMODB_HOME - Amazon DynamoDB package files
|
||||
|
||||
Please refer to https://github.com/brianfrankcooper/YCSB/wiki/Using-the-Database-Libraries
|
||||
for more information on setup.
|
||||
|
||||
BENCHMARK
|
||||
|
||||
$YCSB_HOME/bin/ycsb load dynamodb -P worklaods/workloada -P dynamodb.properties
|
||||
$YCSB_HOME/bin/ycsb run dynamodb -P worklaods/workloada -P dynamodb.properties
|
||||
$YCSB_HOME/bin/ycsb load dynamodb -P workloads/workloada -P dynamodb.properties
|
||||
$YCSB_HOME/bin/ycsb run dynamodb -P workloads/workloada -P dynamodb.properties
|
||||
|
||||
PROPERTIES
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
#dynamodb.endpoint = http://dynamodb.us-east-1.amazonaws.com
|
||||
|
||||
# Strongly recommended to set to uniform.Refer FAQs in README
|
||||
#requestdistribution = uniform
|
||||
#requestdistribution = uniform
|
||||
|
||||
# Enable/disable debug messages.Defaults to false
|
||||
# "true" or "false"
|
||||
|
|
|
@ -200,7 +200,7 @@ public class DynamoDBClient extends DB {
|
|||
}
|
||||
startKey = res.getLastEvaluatedKey();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
return OK;
|
||||
}
|
||||
|
@ -249,7 +249,7 @@ public class DynamoDBClient extends DB {
|
|||
logger.error(ex.getMessage());
|
||||
return CLIENT_ERROR;
|
||||
}
|
||||
return res.getConsumedCapacityUnits().intValue();
|
||||
return OK;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -267,7 +267,7 @@ public class DynamoDBClient extends DB {
|
|||
logger.error(ex.getMessage());
|
||||
return CLIENT_ERROR;
|
||||
}
|
||||
return res.getConsumedCapacityUnits().intValue();
|
||||
return OK;
|
||||
}
|
||||
|
||||
private static Map<String, AttributeValue> createAttributes(
|
||||
|
|
Загрузка…
Ссылка в новой задаче