Ravi Sir's Cards › AWS
CartLite keys
This revision card explains CartLite keys. It starts from the need that cart under wrong PK forces Scans. It describes USER# + CART# for cart; ORD# + ITEM# for lines. The how-to section notes 8 patterns , then draw samples , then Put , then Query begins_with. An example on the card is aisha Khan reuses the same keys on mobile and web.
Read card text
What this card says
Why do we need it?
Cart under wrong PK forces Scans.
What is it?
USER# + CART# for cart; ORD# + ITEM# for lines.
CartLite
How to do it
8 patterns → draw samples → Put → Query begins_with.
Example
Aisha Khan reuses the same keys on mobile and web.