-
PostgreSQL deep dive: Syncing Cart items
context: I was working on persisting cart items in database. The tech stack is React, Nest, Drizzle and Postgres. approach: I thought it would be simple as its just POST and GET requests for syncing, but I went deep diving postgres DB. the saving: Cart Item Table: Approach 1: I can add a product to…