Closed MustaphaU closed 1 month ago
Hi,
You are right, the "all products" api actually doesn't return all the products because of a limit in the dynamodb scan operation.
all_products_resp = requests.get('http://{}/products/all'.format(products_service_instance))
featured_products_resp = requests.get('http://{}/products/featured'.format(products_service_instance))
all_products = all_products_resp.json()
featured_products = featured_products_resp.json()
print(len(all_products))
prints : 2028
, but in the ddb table there is (currently, it might evolve) 2,466 items.
The fix would require to retrieve all data when doing the scan operation (as per paginating results doc https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Scan.html#Scan.Pagination )
Can you let us know the impact on the work you are doing?
You are welcome to contribute with a PR for this.
Thank you. The issue/ impact was side-by-side comparisons of the reranked and the unranked lists could not be done effectively since the length of 'reranked list' < 'unranked list' PR #642
PR #642 merged
Hi,
I am curious why some of the
featured
products are not available inall
products.Specifically, 5
featured
items appear to be missing fromall
products.When I run this in Lab 4 of the Personalization workshop:
It outputs the following IDs, implying these items are featured but not in
all products
: