I used to think I knew how migrations work😭… but I didn't fully grasp them, until today
Basically, when we change the Prisma schema, we create a migration for every meaningful change, like adding a table or a column. we test these migrations locally first. When it’s time to deploy, we run npx prisma migrate deploy. Prisma checks all migration files and applies only the pending ones to the production database, keeping the schema in sync with our code.
One thing to remember, if a table already has data, new columns must be optional or have default values. usually, we add them optional first, backfill the data, then make them required later. this keeps everything safe in production!
@devwitheyob
#TechVibe #Prisma #DBMigrations
Basically, when we change the Prisma schema, we create a migration for every meaningful change, like adding a table or a column. we test these migrations locally first. When it’s time to deploy, we run npx prisma migrate deploy. Prisma checks all migration files and applies only the pending ones to the production database, keeping the schema in sync with our code.
One thing to remember, if a table already has data, new columns must be optional or have default values. usually, we add them optional first, backfill the data, then make them required later. this keeps everything safe in production!
@devwitheyob
#TechVibe #Prisma #DBMigrations
❤3🔥1
Hey gang, as for a Christmas gift share this channel link with your friends and let's hit 800 subs😊
Join the channel
@devwitheyob
#TechVibe
Join the channel
@devwitheyob
#TechVibe
❤5
ዛሬ በዳዊት ከተማ መድኃኒት እርሱም ክርስቶስ ጌታ የሆነ ተወልዶላችኋልና❤️
Merry Christmas my fam😊
@devwitheyob
#TechVibe #christmas
Merry Christmas my fam😊
@devwitheyob
#TechVibe #christmas
❤6👍1🔥1
Enjoy the feast, recharge your brain, and whenever you’re ready, we’ll get back to it😁
I got this somewhere😁
@devwitheyob
#TechVibe
I got this somewhere😁
@devwitheyob
#TechVibe
😁3
I just learned an amazing technique while reading for exam about process and thread
we can use cluster(node built-in module) to spawn different worker process to use maximum cpu utilization it basically makes your nodejs app to be multi processing works like you run multiple process from one codebase they communicate using IPC(Inter process communication) and you get a full CPU power to process requests fast for most OS the algorithm is round-robin
but your app should be stateless for this to work or you may lose data or context
@devwitheyob
#TechVibe #multiprocessing #node
we can use cluster(node built-in module) to spawn different worker process to use maximum cpu utilization it basically makes your nodejs app to be multi processing works like you run multiple process from one codebase they communicate using IPC(Inter process communication) and you get a full CPU power to process requests fast for most OS the algorithm is round-robin
but your app should be stateless for this to work or you may lose data or context
@devwitheyob
#TechVibe #multiprocessing #node
❤2
guys if you can speak english natively and also have experience in web development I can give your dicord to him, so DM me😊
@devwitheyob
#TechVibe #opportunities
@devwitheyob
#TechVibe #opportunities
❤3
all of a sudden my battery icon changes on my windows PC😳
anyone experiencing this?
@devwitheyob
#TechVibe
anyone experiencing this?
@devwitheyob
#TechVibe
Tailwind CSS laid off 75% of its engineers due to decreased revenue and the impact of AI. 😌
@devwitheyob
#TechVibe #AI
@devwitheyob
#TechVibe #AI
😭4
what a fast team🫡
Today I report an issue when trying to run the CLI tool for codecrafters and I contacted them on gmail and them they just shipped a fix within less than 4 hours👏👏
@devwitheyob
#TechVibe #CodeCrafters
Today I report an issue when trying to run the CLI tool for codecrafters and I contacted them on gmail and them they just shipped a fix within less than 4 hours👏👏
@devwitheyob
#TechVibe #CodeCrafters
Forwarded from Hacker News
Google AI Studio is now sponsoring Tailwind CSS (🔥 Score: 163+ in 1 hour)
Link: https://readhacker.news/s/6K4c7
Comments: https://readhacker.news/c/6K4c7
Link: https://readhacker.news/s/6K4c7
Comments: https://readhacker.news/c/6K4c7
X (formerly Twitter)
Logan Kilpatrick (@OfficialLoganK) on X
I am happy to share that we (the @GoogleAIStudio team) are now a sponsor of the @tailwindcss project! Honored to support and find ways to do more together to help the ecosystem of builders.
🔥1
Use these simple commit types to keep your Git history clean and easy to understand guys
• feat: add a new feature users can see
• fix: fix a bug or unexpected behavior
• chore: maintenance work (dependencies, configs, cleanup)
• refactor: improve code structure without changing how it works
• docs: documentation changes only
@devwitheyob
#TechVibe #tips #git
• feat: add a new feature users can see
• fix: fix a bug or unexpected behavior
• chore: maintenance work (dependencies, configs, cleanup)
• refactor: improve code structure without changing how it works
• docs: documentation changes only
@devwitheyob
#TechVibe #tips #git
🤝2
Forwarded from KiNFiSH Farms
Open-source ennoscriptment was already quietly eroding sponsorships and donations for years. AI just compressed the timeline from a gradual decline to a sudden collapse for doc-driven monetization. forcing everyone to rethink SaaS locks or direct licensing faster than expected.
I mean tailwind is great by itself but often yet making money massively is not a credit for great product but eventually do regardless of how AI is accelerating. Sometimes tough decision is not have to be like calculated just so they should exist and suffers you.
My take away on tailwindcss creator rant - https://x.com/adamwathan/status/2008909129591443925?s=46
I mean tailwind is great by itself but often yet making money massively is not a credit for great product but eventually do regardless of how AI is accelerating. Sometimes tough decision is not have to be like calculated just so they should exist and suffers you.
My take away on tailwindcss creator rant - https://x.com/adamwathan/status/2008909129591443925?s=46
X (formerly Twitter)
Adam Wathan (@adamwathan) on X
🎧 Recorded a new morning walk this morning, hard one to share because I'm sure people will want to roast me for it but have been transparent up until now so publishing it anyways.
Forwarded from Dagmawi Babi
OpenAI going for enterprise is a great thing. They currently have education, healthcare and jobs, what's next? Finances? Retail? Manufacturing?
#OpenAI
@Dagmawi_Babi
#OpenAI
@Dagmawi_Babi