Some table's roles are unclear.
- mails - Why are these in the database? They consume 20% of production DB
This takes a record of each & every mail which is sent from the app to the users. And details regarding those are then displayed in Admin/Mails
I know what it is used for, but why?
@iamareebjamal For orders_tickets, how exactly is redis caching going to be useful?
If you need to cache the amount of tickets associated with the order, cache it rather than storing it in a separate table in DB. It's the violation of single source of truth and source of bugs
The number of tickets associated with orders is being used everywhere in the application. Okay, I get your point.
But what I'm still skeptical about is the reason why the quantity field wasn't present in the orders table from before
Nvm, it's there
SELECT count(*) from ticket_holder where order_id = 5;
Hello Sir,
If issue is not solved, Can i try to solve it
Not meant for beginners, please don't spam comment on issues