Angularjs dynamo db中的分页

Angularjs dynamo db中的分页,angularjs,amazon-web-services,pagination,amazon-dynamodb,Angularjs,Amazon Web Services,Pagination,Amazon Dynamodb,我要在我的angular Js应用程序上设置分页。我目前正在使用此查询 我是如何使用这个应用分页的 好吧,坏消息是DynamoDB中没有分页(尤其是没有OFFSET参数)。我有这个函数用于scan()处理分页(PHP代码): $this->\u客户端指的是DynamoDB连接 正如你们所看到的,我在响应中检查LastEvaluatedKey,若它在那个里,那个么它意味着数据库中的条目仍然并没有返回。然后我循环直到这个参数消失。你检查过角度引导ui的分页了吗?实际上,我需要dynamodb中ama

我要在我的angular Js应用程序上设置分页。我目前正在使用此查询


我是如何使用这个应用分页的

好吧,坏消息是DynamoDB中没有分页(尤其是没有OFFSET参数)。我有这个函数用于
scan()
处理分页(PHP代码):

$this->\u客户端
指的是DynamoDB连接


正如你们所看到的,我在响应中检查
LastEvaluatedKey
,若它在那个里,那个么它意味着数据库中的条目仍然并没有返回。然后我循环直到这个参数消失。

你检查过角度引导ui的分页了吗?实际上,我需要dynamodb中amazon web services的帮助来编写查询。
 TableName: 'articles_staging',
                IndexName: 'feeds_feedname-index',
                KeyConditions: {
                    "feeds_feedname": {
                        "AttributeValueList": [{
                                "S": arrayfeeds[j]


                            }

                        ],

                        "ComparisonOperator": "EQ"
                    }
                }
private function scan($table, $filter = [], $select = null, $limit = 10)
{
    $page = isset($_GET['page']) ? $_GET['page'] : 0;
    $options = [
        'TableName' => $table,
        'Count' => true,
    ];

    if (!empty($limit)) {
        $options['Limit'] = $limit;
    }

    if (!is_null($select)) {
        $options['Select'] = $select;
    }

    if (!empty($filter)) {
        $options['ScanFilter'] = $filter;
    }

    // For pagination:
    $results = $this->_client->scan($options);

    while ($page > 0 && isset($results['LastEvaluatedKey'])) {
        $results = $this->_client->scan($options);
        $options['ExclusiveStartKey'] = $results['LastEvaluatedKey'];
        $page--;
    }

    return $results;
}