英文:
cannot insert and found the data was store in dynamoDb
问题
你好,我有DynamoDB的数据。
像这样的数据:
预留读取容量单位
100(启用自动缩放)
预留写入容量单位
237(启用自动缩放)
上次减少时间
2020年6月29日,上午9:21:11 UTC+7
UTC时间:2020年6月29日,上午2:21:11 UTC
当地时间:2020年6月29日,上午9:21:11 UTC+7
地区(俄亥俄州):2020年6月28日,晚上9:21:11 UTC-5
上次增加时间
2020年6月29日,上午11:23:37 UTC+7
UTC时间:2020年6月29日,上午4:23:37 UTC
当地时间:2020年6月29日,上午11:23:37 UTC+7
地区(俄亥俄州):2020年6月28日,晚上11:23:37 UTC-5
存储大小(以字节为单位)
4.17 GB
项数
57,546,905管理实时计数
地区
美国东部(俄亥俄州)
数据在那里,我成功地插入了DynamoDB,但是当我尝试查询时找不到...就好像我的DynamoDB不能读取或写入数据...为什么会这样?我从我的经纪人外汇中插入了价格数据。
以下是我要插入数据库时的代码:
Integer priceId = ++count;
String symbols = symbol;
String price = priceAsString;
String time = timestampstrings;
String idPrice = String.valueOf(priceId);
String Prefix = "Onezero";
String idSave = Prefix.concat(idPrice);
//添加内容
Item item = new Item().withPrimaryKey("symbol", symbols, "priceId", idSave).withString("Price", price).withString("savetime", time);
//保存到DynamoDb
table.putItem(item);
//System.out.println("Success For Insert Data");
数据从6月16日到现在都缺失了,为什么会这样?
我想知道如何为海量数据和快速插入设置DynamoDB?
英文:
hi all i have dynamoDb data
like this one
Provisioned read capacity units
100 (Auto Scaling Enabled)
Provisioned write capacity units
237 (Auto Scaling Enabled)
Last decrease time
June 29, 2020 at 9:21:11 AM UTC+7
UTC: June 29, 2020 at 2:21:11 AM UTC
Local: June 29, 2020 at 9:21:11 AM UTC+7
Region (Ohio): June 28, 2020 at 9:21:11 PM UTC-5
Last increase time
June 29, 2020 at 11:23:37 AM UTC+7
UTC: June 29, 2020 at 4:23:37 AM UTC
Local: June 29, 2020 at 11:23:37 AM UTC+7
Region (Ohio): June 28, 2020 at 11:23:37 PM UTC-5
Storage size (in bytes)
4.17 GB
Item count
57,546,905Manage live count
Region
US East (Ohio)
the data are there and i success insert to dynamoDb
but when i try to query i cannot found that... and it is like my dynamoDb cannot read or write the data... why like that ? i insert price data from my broker foreign exchange
here my code when i want insert to my database
Integer priceId = ++count;
String symbols= symbol;
String price = priceAsString;
String time = timestampstrings;
String idPrice = String.valueOf(priceId);
String Prefix = "Onezero";
String idSave = Prefix.concat(idPrice);
//Add Content
Item item = new Item().withPrimaryKey( "symbol", symbols, "priceId", idSave).withString("Price", price).withString("savetime", time);
//save to DynamoDb
table.putItem(item);
//System.out.println("Success For Insert Data");
the data are missing from 16th of june until now. why like that
i want to now how to setup dynamoDb for huge data and fast insert ?
专注分享java语言的经验与见解,让所有开发者获益!
评论