baopham / laravel-dynamodb

Eloquent syntax for DynamoDB
https://packagist.org/packages/baopham/dynamodb
MIT License
490 stars 127 forks source link

Query gives no result when there is huge amount of data in DynamoDB table #245

Closed veerendrapatel closed 3 years ago

veerendrapatel commented 3 years ago

$query = $this->qBuilder ->where(['id' => '1234']) ->where('created_at' , 'between', ['startDate', 'endDate']) ->withIndex('LocalIndex') ->limit(50) ->get()(tried with ->all()) Local Secondary Index on id(hash) and created_at(range)(it has timestamp 2021-09-29T10:11:38+00:00) This returns empty result when I have large amount of data in DynameDB table.

veerendrapatel commented 3 years ago

this is resolved, we need to define $compositeKey = ['key1', 'key2', 'key3'];