Search posts, tags, users, and pages
Benoît Bouré
Software developer
In this article, I will discuss a few tricks on how to optimize your GraphQL API for items that use composite keys in DynamoDB. It will work no matter the GraphQL server, but if you're using AppSync, you're in luck because I'll share a few (VTL) code...
Patrick Werz
Aws serverless iot
Hi Benoit, thanks for sharing. This trick (splitting up the Id) would still be possible without denormalizing the data, right?
Do you mean without denormalizing an id attribute? Yes, it would still work. But keep in mind that it would be easier to return from the API if it comes pre-denormalized.
id
Phillip Ninan
Senior Software Engineer
Great read Ben! This is actually a problem I have come across in the past and was unsure how to handle it. Thanks!
Patrick Werz
Aws serverless iot
Hi Benoit, thanks for sharing. This trick (splitting up the Id) would still be possible without denormalizing the data, right?