我正在建立一个社交网络,用户可以向其他用户发送请求。
当用户查看其消息页面时加载的控制器:
$scope.requestedProfileTrips = Requests.getRequests(user.id).then(function (requests) {
$scope.requestedProfileTrips = [];
for (var i = 0; i < requests.length; i++) {
// this function loads additional data depending on the request from
让我们假设当前数据库主要有3个表。
Pkey =分区键
管理员
密钥(-id)、用户名、电子邮件、createdAt、UpdatedAt
标语
标题(主键)、isActive、createdAt、标题
新闻
-id(主键)、createdAt、isActive、标题、消息
以上表格都与其他表格没有关系,未来还需要更多的表格(我认为大部分表格也与其他表格没有关系)。
根据aws文档
You should maintain as few tables as possible in a DynamoDB application.
因此,我正在考虑是否需要将这3个表合并为一个表。
我应该从现在开